Linux Deploy Rails3 with Ruby1.9.2(2)
This is the situation on Ubunt11.04, everything works fine.
>bundle show execjs
/home/carl/.rvm/gems/ruby-1.9.2-p290/gems/execjs-1.2.4
>bundle show libv8
/home/carl/.rvm/gems/ruby-1.9.2-p290/gems/libv8-3.3.10.2-x86_64-linux
>bundle show therubyracer
/home/carl/.rvm/gems/ruby-1.9.2-p290/gems/therubyracer-0.9.3
But the grails envirement on redhat is a mess, the differences is the rvm.
I install ruby and others on ubunt with rvm. But I complied and installed ruby on redhat.
1. Install rvm on redhat
>mkdir -p ~/.rvm/src/
>cd ~/.rvm/src
>rm -fr rvm/
>git clone git://github.com/wayneeseguin/rvm.git
>cd rvm
>./install
The location is in /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" # Load RVM function
>rm -fr /home/carl/.rvm/
>sudo ln -s /usr/local/rvm ~/.rvm
>source ~/.bash_profile
>rvm -v
rvm 1.7.2 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
2. Install ruby
>sudo rvm install 1.9.2
error messages:
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
solutions:
back the crt if exist:
>sudo cp /etc/pki/tls/certs/ca-bundle.crt /root/backup/
generate the key
>wget http://curl.haxx.se/ca/cacert.pem
>sudo mkdir -p /etc/pki/tls/certs
>sudo cp cacert.pem /etc/pki/tls/certs/curl-ca-bundle.crt
>sudo cp cacert.pem /home/carl/.rvm/bin/curl-ca-bundle.crt
>sudo cp cacert.pem /usr/local/rvm/bin/curl-ca-bundle.crt
>sudo rvm install 1.9.2 --with-ca-bundle=/etc/pki/tls/certs/curl-ca-bundle.crt
Fails, it is not working.
3. check the information on redhat
>bundle show execjs
/home/carl/work/project/1.x/console/execjs/ruby/1.9.1/gems/execjs-1.2.4
>bundle show libv8
/home/carl/work/project/1.x/console/execjs/ruby/1.9.1/gems/libv8-3.3.10.2-x86-linux
>bundle show therubyracer
/home/carl/work/project/1.x/console/execjs/ruby/1.9.1/gems/therubyracer-0.9.3
It is really strange that the ubunt says the gem path, but the redhat says the project path.
strange, I try to copy them there.
>sudo cp -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
>sudo cp -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
>sudo cp -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
It is not working. I was blocked here.
references:
http://sillycat.iteye.com/blog/1153950
http://curl.haxx.se/docs/sslcerts.html
分享到:
相关推荐
安卓平台虚拟机,最新版下载地址:...linuxdeploy-2.6.0-259.apk 为目前最新版(2020-02-01更新),最低支持Android 5.0。Android 4.4 支持版本:https://download.csdn.net/download/zhyjie100/12254490。
linuxdeploy
Linux Deploy.zip
可用于手机安装Linux环境 供无法使用Play商店小伙伴下载
This concise teaches you how to use the power of Docker and Kubernetes to deploy your Rails applications easily and efficiently. Docker and Kubernetes are increasing in popularity every day, but what ...
Android-linuxdeploy.zip,在android上安装并运行gnu/linux,安卓系统是谷歌在2008年设计和制造的。操作系统主要写在爪哇,C和C 的核心组件。它是在linux内核之上构建的,具有安全性优势。
install-linuxdeploy-action 在Github Actions工作流程上安装LinuxDeploy的操作。 请参阅LinuxDeploy主页上的linuxdeploy实用程序详细信息。 该操作可以处理LinuxDeploy的插件。 您可以指定插件和要安装的目标目录...
linuxdeploy-2.5.1-257.apk和linuxdeploy-2.6.0-259 .apk
Linux deploy 32位系统 怎么安装宝塔怎么安装linux系统安装宝塔后搭建网站 怎么在手机上搭建服务器 使用linuxdeploy Linux deploy 在手机上搭建linux系统
Rails 经典开发参考书, Ruby on rails 系近年来在西方日渐盛行的一套网页开发工具,其高度集成化时开发时间大大缩短.
linux下的程序,打包为.AppImage
官网原版,1.8_211 可用于linuxdeploy 安装在aarch64 位架构的ARM 处理器的手机上的linux 64。 已验证centos7 aarch64可用
Linux Deploy_2.5.0.apk
(截止2020-3-27)最新版 1、Linux Deploy2.6.0_258.apk 2、busybox-1.31.1-46.apk
linuxdeploy-cli:Linux部署CLI
655137293901643必须1 linuxdeploy-1.apk
官网原版,1.8_211 可用于linuxdeploy 安装在aarch64 位架构的ARM 处理器的手机上的linux 32位。
1.确保androidx86已经有Intel提供的应用兼容性库,并在设置中,打开的应用兼容性设置Apps 2.使用上述app链接下载linux deploy应
When you install Linux on the flash card with the FAT32 file system, the image size should not exceed 4095 MB! After the initial setup the password for SSH and VNC generated automatically. The ...
Easy Deploy Rails 5 Application Server ( Nginx 1.10、Passenger 5、Ruby 2.3.1 ) ; 快速部署 Rails 5 伺服器