How do I install libksba on mac osx?

2019-02-16 19:19发布

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!!!

2条回答
我只想做你的唯一
2楼-- · 2019-02-16 19:48

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

查看更多
The star\"
3楼-- · 2019-02-16 19:57

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
查看更多
登录 后发表回答