如何在mac osx上安装libksba?

时间:2021-05-19 07:15:47

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

根据rvm的要求,“对于Ruby 1.9.3:安装libksba#如果使用Homebrew,'brew install libksba'”

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

我是全新的,不熟悉终端命令。如何在不使用自制程序的情况下安装libksba?

Please help!!!

请帮忙!!!

2 个解决方案

#1


10  

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.

我刚刚从源代码安装了libksba及其依赖libgpg-error,我可以向你保证安装Homebrew然后安装libksba要简单得​​多。使用Homebrew,您将花费更少的时间处理终端命令,并且成功的可能性要高得多。它很受欢迎是有原因的。

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

为了未来访问者的利益,这里有一些说明,通过没有Homebrew的bash从源代码编译和安装libgpg-error和libksba:

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


1  

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

你需要安装xcode的命令行工具。然后你不需要安装libksba。

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

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

Best, Olli

最好的,奥利

#1


10  

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.

我刚刚从源代码安装了libksba及其依赖libgpg-error,我可以向你保证安装Homebrew然后安装libksba要简单得​​多。使用Homebrew,您将花费更少的时间处理终端命令,并且成功的可能性要高得多。它很受欢迎是有原因的。

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

为了未来访问者的利益,这里有一些说明,通过没有Homebrew的bash从源代码编译和安装libgpg-error和libksba:

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


1  

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

你需要安装xcode的命令行工具。然后你不需要安装libksba。

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

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

Best, Olli

最好的,奥利