pip: Could not find an activated virtualenv (required)

Open your ~/.bashrc file and see if this line is there – export PIP_REQUIRE_VIRTUALENV=true It might be causing the trouble. If it’s there, change it to false and run – source ~/.bashrc If not, run export PIP_REQUIRE_VIRTUALENV=false from terminal. Note: everything works the same if you have .bash_profile instead of .bashrc in your current user’s … Read more

com.apple.eawt – what exactly I should install

There is no JAR to download or anything extra to install, the classes are part of the JDK on Mac OS X. In Apple Java 6 JDKs they live in Contents/Classes/ui.jar under the JDK bundle (e.g. /System/Library/Java/JavaVirtualMachines/1.6.0.jdk or /Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk), on Oracle Java 7 they are in lib/rt.jar under the JRE home directory (/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home or … Read more

How to set environment variables to an application on OSX Mountain Lion?

Unfortunately, this seems to be the best option for setting a global environment variable in OS X 10.8.x Mountain Lion: https://stackoverflow.com/a/588442/705157 For temporary environment variables, run this command in Terminal.app, and restart any apps that need to access the variable: launchctl setenv MYVARIABLE value To make an environment variable persistent across reboots, create /etc/launchd.conf and … Read more

Mountain Lion rvm install 1.8.7 x11 error

Try to install X11 via http://xquartz.macosforge.org/landing/ set the correct path to the X11 library for the compiler with: export CPPFLAGS=-I/opt/X11/include then try to reinstall ruby, passing to the compiler where gcc-4.2 is: CC=/usr/local/bin/gcc-4.2 rvm reinstall 1.8.7 Without CC I got a lot of segmentation faults.

Can’t install pg gem on Mountain Lion

Download the postgresSQL installer from http://www.enterprisedb.com/products-services-training/pgdownload#osx and then make your path look something like this: PATH=$PATH:/Library/PostgreSQL/9.0/bin/ gem install pg This would do! Note: Please specify your postgreSQL installed version correctly in the path. UPDATE(10/11/2015) (Taken from Heroku) On OS X with Homebrew: Install postgresql using: brew install postgresql Then install the gem using: gem install … Read more

GLUT on OS X with OpenGL 3.2 Core Profile

You need at least Mac OS X Lion (OS X 10.7 or higher) for the basic support of OpenGL 3.2. To use the OpenGL 3.2 Core Profile, just add glutInitDisplayMode(GLUT_3_2_CORE_PROFILE | … | …); in your main-function. You can check it by std::printf(“%s\n%s\n”, glGetString(GL_RENDERER), // e.g. Intel HD Graphics 3000 OpenGL Engine glGetString(GL_VERSION) // e.g. … Read more