Skip to content

Instantly share code, notes, and snippets.

@paolodina
Last active October 3, 2016 20:45
Show Gist options
  • Save paolodina/60856edeb9884bc323a7 to your computer and use it in GitHub Desktop.
Save paolodina/60856edeb9884bc323a7 to your computer and use it in GitHub Desktop.
pip install bcrypt on Webfaction
cd ~/tmp/
wget ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz
tar zxf libffi-3.2.1.tar.gz
cd ~/tmp/libffi-3.2.1
./configure --prefix=/home/user/tmp/libffi
make
make install
PKG_CONFIG_PATH=/home/user/tmp/libffi/lib/pkgconfig/ LD_LIBRARY_PATH=/home/user/tmp/libffi/lib/ pip install bcrypt
Finally add LD_LIBRARY_PATH information to Apache's start script (located in /home/user/webapps/foobar/apache2/bin)
@nomorepanic
Copy link

Had to use lib64 instead of lib

PKG_CONFIG_PATH=/home/user/tmp/libffi/lib/pkgconfig/ LD_LIBRARY_PATH=/home/user/tmp/libffi/lib64/ pipX.Y install bcrypt

And adding the path to apache's scripts did not work, although adding libffi.so.6 to app/apache2/lib did it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment