OpenSSL error resolution for Ruby installation under openSUSE _ruby topics

Source: Internet
Author: User
Tags openssl readline

Recently playing Ruby, good to say, very feeling; OpenSUSE 12.3 on an old machine and then using RVM to install Ruby, in fact, any good release package Ruby is better than using RVM installed Ruby, personally feel (defy).

Then, when you install some software with a gem, you will receive the following error:

Copy Code code as follows:

' No such file to load-OpenSSL (loaderror) '

The simple reason is that Ruby's OpenSSL support module is not installed and is installed under OpenSUSE:

Copy Code code as follows:

sudo zypper in Libopenssl-devel

Then compile the OpenSSL module and enter the ~/.RVM/SRC/RUBY-XXX/EXT/OPENSSL:

Copy Code code as follows:

Ruby Extconf.rb
Make
Make install

Ok,done.
Summary, in fact, many similar errors can be solved by the above way, such as no readline error, you can install Readline-devel, and then enter the ~/.rvm/src/ruby-xxx/ext/readline, execute compile, this is very good, cool~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.