我无法找到此软件的软件包。我从这里找到的包构建和安装,但它仍然不能与 rvm 和 gem 正常工作(日志位于这里)。您如何建议找到一个包以使其正常工作?
stanley@ubuntu:~/Github/webdev_class/ruby$ sudo apt-cache search ^openssl
[sudo] password for stanley:
openssl-blacklist - Blacklists for OpenSSL RSA keys and tools
openssl-blacklist-extra - Non-default blacklists of OpenSSL RSA keys
libengine-pkcs11-openssl - OpenSSL engine for PKCS#11 modules
libxmlsec1-openssl - Openssl engine for the XML security library
openssl - Secure Socket Layer (SSL) binary and related cryptographic tools
Run Code Online (Sandbox Code Playgroud)
这是尝试后的打印输出dpkg -l | grep openssl。
stanley@ubuntu:~/Github/webdev_class/ruby$ dpkg -l | grep openssl
ii openssl 1.0.0e-2ubuntu4.5 Secure Socket Layer (SSL) binary and related cryptographic tools
ii python-openssl 0.12-1ubuntu1 Python wrapper around the OpenSSL library
Run Code Online (Sandbox Code Playgroud)
bel*_*qua 10
使用sudo apt-get install openssl,或使用软件中心查找。
当我寻找包时,我通常使用apt-cache search whatever.
对于 openssl,这是我在我的系统上看到的:
$ apt-cache search ^openssl
openssl - Secure Socket Layer (SSL) binary and related cryptographic tools
openssl-blacklist - Blacklists for OpenSSL RSA keys and tools
openssl-blacklist-extra - Non-default blacklists of OpenSSL RSA keys
libengine-pkcs11-openssl - OpenSSL engine for PKCS#11 modules
libxmlsec1-openssl - Openssl engine for the XML security library
Run Code Online (Sandbox Code Playgroud)
对于 gem 依赖项,您通常会使用以下内容:
sudo apt-get install ruby-full build-essential ruby-rvm yorick rubygems
Run Code Online (Sandbox Code Playgroud)
但是,显然ruby-rvm 已损坏,因此 ex(?)-maintainer 的建议是将其完全删除,并通过提供的 URL 和 bash 脚本进行安装:
Run Code Online (Sandbox Code Playgroud)sudo apt-get --purge remove ruby-rvm sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh打开新终端并验证旧 rvm 设置中的环境是否干净(应该没有输出):
Run Code Online (Sandbox Code Playgroud)env | grep rvm如果有输出,请尝试打开新终端,如果没有帮助 - 重新启动计算机
安装 RVM:
Run Code Online (Sandbox Code Playgroud)curl -L get.rvm.io | bash -s stable
rvm requirements安装红宝石前不要忘记阅读