2
操作系統:Ubuntu服務器11.10無法加載這樣的文件 - 套接字(LoadError)
我得到這個錯誤試圖「寶石安裝rails」。
/home/bindiry/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- socket (LoadError)
from /home/bindiry/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/bindiry/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/protocol.rb:21:in `<top (required)>'
這是我的安裝過程:
sudo apt-get update
sudo apt-get install unzip curl aptitude
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
echo '[[ -s "/home/bindiry/.rvm/scripts/rvm" ]] && source "/home/bindiry/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*' >> ~/.bashrc
source .bashrc
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev \
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev \
libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev \
autoconf libc6-dev ncurses-dev automake libtool bison g++ nodejs \
libapr1 libaprutil1 libneon27-gnutls libsvn1 subversion pkg-config
rvm get stable
rvm install 1.9.3
rvm 1.9.3 --default
ruby -v
# ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]
任何想法將是有益的。
感謝。
更新:
我解決這個問題。
確保您已卸載1.9.3。
rvm pkg install openssl
rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr
完成。
我試過了。不行。 – Bindiry 2012-02-22 01:50:29