Broken references in Virtualenvs

I found the solution to the problem here, so all credit goes to the author. The gist is that when you create a virtualenv, many symlinks are created to the Homebrew installed Python. Here is one example: $ ls -la ~/.virtualenvs/my-virtual-env … lrwxr-xr-x 1 ryan staff 78 Jun 25 13:21 .Python -> /usr/local/Cellar/python/2.7.7/Frameworks/Python.framework/Versions/2.7/Python … When … Read more

Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError)

I just fixed a similar issue on my system. You need to rebuild your install of Ruby 2.1.2 and it will re-link against the newly-updated SSL. $ rbenv install 2.1.2 rbenv: /Users/ryan/.rbenv/versions/2.1.2 already exists continue with installation? (y/N) y Downloading ruby-2.1.2.tar.gz… -> http://dqw8nmjcqpjn7.cloudfront.net/f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6635 Installing ruby-2.1.2… Installed ruby-2.1.2 to /Users/ryan/.rbenv/versions/2.1.2

How do I use brew installed Python as the default Python?

As you are using Homebrew the following command gives a better picture: brew doctor Output: ==> /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. This is an issue if you eg. brew installed Python. Consider editing your .bash_profile to put: /usr/local/bin ahead of /usr/bin in … Read more

How do I find a list of Homebrew’s installable packages?

brew help will show you the list of commands that are available. brew list will show you the list of installed packages. You can also append formulae, for example brew list postgres will tell you of files installed by postgres (providing it is indeed installed). brew search <search term> will list the possible packages that … Read more

gem eventmachine fatal error: ‘openssl/ssl.h’ file not found

$ gem install eventmachine — –with-cppflags=-I/usr/local/opt/openssl/include Building native extensions with: ‘–with-cppflags=-I/usr/local/opt/openssl/include’ This could take a while… Successfully installed eventmachine-1.0.8 1 gem installed You can also set up bundler like this but I think that is superficial bundle config build.eventmachine –with-cppflags=-I/usr/local/opt/openssl/include

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)