[Ruby]在Ubuntu建立Ruby on Rails環境時發生問題

| Comments

剛剛在試著建立Ruby on Rails 環境時,都安裝到一半,卻發生了

Checking for required software…

* GNU C++ compiler… found at /usr/bin/g++
* Curl development headers with SSL support… found
* OpenSSL development headers… found
* Zlib development headers… found
* Ruby development headers… found
* OpenSSL support for Ruby… not found
* RubyGems… found
* Rake… found at /home/sammy/.rvm/wrappers/ruby-1.9.2-p180/rake
* rack… found
* Apache 2… found at /usr/sbin/apache2
* Apache 2 development headers… found at /usr/bin/apxs2
* Apache Portable Runtime (APR) development headers… found at /usr/bin/apr-1-config
* Apache Portable Runtime Utility (APU) development headers… found at /usr/bin/apu-1-config

Some required software is not installed.
But don’t worry, this installer will tell you how to install them.

Press Enter to continue, or Ctrl-C to abort.

找不到 OpenSSL support for Ruby

還好有google大神讓我找到方法了><

解決方式:

cd $HOME
cd .rvm/src/ruby-1.9.2-p0/ext/openssl
ruby extconf.rb
make
make install

Comments