Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install libksba on mac osx?

According to rvm requirements, "For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba'"

I am completely new and am not familiar with terminal commands. How can I install libksba without using homebrew?

Please help!!!

like image 564
user1294006 Avatar asked Mar 26 '12 20:03

user1294006


2 Answers

I just installed libksba and its dependency libgpg-error from source and I can assure you that installing Homebrew and then installing libksba is much more straightforward. With Homebrew, you'll spend far less time dealing with terminal commands and the likelihood of success is considerably higher. It is popular for a reason.

For the benefit of future visitors, here are instructions to compile and install libgpg-error and libksba from source via bash without Homebrew:

cd /usr/local/src

curl -O ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.9.tar.gz
tar -xvf libgpg-error-1.9.tar.gz
cd libgpg-error-1.9/
./configure
make
make install

cd ..
curl -O ftp://ftp.gnupg.org/gcrypt/libksba/libksba-1.2.0.tar.bz2
tar -xvf libksba-1.2.0.tar.bz2
cd libksba-1.2.0/
./configure
make
make install
like image 181
ezkl Avatar answered Nov 04 '22 22:11

ezkl


you need to install the command line tools of xcode. Then you don't need to install libksba.

http://blog.salientdigital.com/2012/05/16/how-to-fix-no-acceptable-c-compiler-found-in-path-on-mac-os-x-lion/

Best, Olli

like image 1
Oliver Moser Avatar answered Nov 05 '22 00:11

Oliver Moser