Linux Deploy Rails3 with Ruby1.9.2(2)
LinuxDeployRails3withRuby1.9.2(2)
ThisisthesituationonUbunt11.04,everythingworksfine.
>bundleshowexecjs
/home/carl/.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.4
>bundleshowlibv8
/home/carl/.rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.2-x86_64-linux
>bundleshowtherubyracer
/home/carl/.rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.3
Butthegrailsenvirementonredhatisamess,thedifferencesisthervm.
Iinstallrubyandothersonubuntwithrvm.ButIcompliedandinstalledrubyonredhat.
1.Installrvmonredhat
>mkdir-p~/.rvm/src/
>cd~/.rvm/src
>rm-frrvm/
>gitclonegit://github.com/wayneeseguin/rvm.git
>cdrvm
>./install
Thelocationisin/usr/local/rvm/bin
>vi~/.bash_profile
PATH=$PATH:$HOME/bin:/usr/local/rvm/bin
[[-s"/usr/local/rvm/scripts/rvm"]]&&."/usr/local/rvm/scripts/rvm"#LoadRVMfunction
>rm-fr/home/carl/.rvm/
>sudoln-s/usr/local/rvm~/.rvm
>source~/.bash_profile
>rvm-v
rvm1.7.2byWayneE.Seguin([email protected])[https://rvm.beginrescueend.com/]
2.Installruby
>sudorvminstall1.9.2
errormessages:
curl:(60)SSLcertificateproblem,verifythattheCAcertisOK.Details:
error:14090086:SSLroutines:SSL3_GET_SERVER_CERTIFICATE:certificateverifyfailed
Moredetailshere:http://curl.haxx.se/docs/sslcerts.html
curlperformsSSLcertificateverificationbydefault,usinga"bundle"
solutions:
backthecrtifexist:
>sudocp/etc/pki/tls/certs/ca-bundle.crt/root/backup/
generatethekey
>wgethttp://curl.haxx.se/ca/cacert.pem
>sudomkdir-p/etc/pki/tls/certs
>sudocpcacert.pem/etc/pki/tls/certs/curl-ca-bundle.crt
>sudocpcacert.pem/home/carl/.rvm/bin/curl-ca-bundle.crt
>sudocpcacert.pem/usr/local/rvm/bin/curl-ca-bundle.crt
>sudorvminstall1.9.2--with-ca-bundle=/etc/pki/tls/certs/curl-ca-bundle.crt
Fails,itisnotworking.
3.checktheinformationonredhat
>bundleshowexecjs
/home/carl/work/project/1.x/console/execjs/ruby/1.9.1/gems/execjs-1.2.4
>bundleshowlibv8
/home/carl/work/project/1.x/console/execjs/ruby/1.9.1/gems/libv8-3.3.10.2-x86-linux
>bundleshowtherubyracer
/home/carl/work/project/1.x/console/execjs/ruby/1.9.1/gems/therubyracer-0.9.3
Itisreallystrangethattheubuntsaysthegempath,buttheredhatsaystheprojectpath.
strange,Itrytocopythemthere.
>sudocp-fr/home/carl/work/manhattan/1.x/console/execjs/ruby/1.9.1/gems/execjs-1.2.4/usr/local/ruby1.9.2/lib/ruby/gems/1.9.1/gems/execjs-1.2.4
>sudocp-fr/home/carl/work/manhattan/1.x/console/execjs/ruby/1.9.1/gems/libv8-3.3.10.2-x86-linux/usr/local/ruby1.9.2/lib/ruby/gems/1.9.1/gems/libv8-3.3.10.2-x86-linux
>sudocp-fr/home/carl/work/manhattan/1.x/console/execjs/ruby/1.9.1/gems/therubyracer-0.9.3//usr/local/ruby1.9.2/lib/ruby/gems/1.9.1/gems/therubyracer-0.9.3
Itisnotworking.Iwasblockedhere.
references:
http://curl.haxx.se/docs/sslcerts.html