How do I install libksba on mac osx?

半腔热情 提交于 2019-12-01 00:22:59

问题


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


回答1:


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



回答2:


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



来源:https://stackoverflow.com/questions/9879629/how-do-i-install-libksba-on-mac-osx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!