参考了这个流程 http://blog.csdn.net/g599351300/article/details/7635411
文章中提到两种安装 libyaml 的方法,在 centos 下都不管用: (1)直接 tar xzvf yaml-0.1.4.tar.gz 时,安装配置一切正常,Rails -v 也显示 rails 配置成功(Rails 3.2.11) 但真正使用 rails new 命令建立第一个框架时却提示没有 libyaml: It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby.
(2)用 yum install libyaml-dev 指令时会提示没有 libyaml-dev 包
$ cat /etc/redhat-release
CentOS release 6.3 (Final)
我这个貌似是最新版 CentOS,部署 ror/mysql/rmagic 没问题,ruby 是用 rvm 装的
#3 楼 @plasmiq Centos6 64 位 首先 yum 加上 EPEL 然后安装 curl yum install curl curl-devel 这个可能不用装 然后安装 rvm curl -L https://get.rvm.io | bash -s stable 注意 现在不要安装 ruby 然后 rvm requirements 照提示安装 然后 rvm pkg install openssl 然后 rvm install 1.9.3 然后装数据库 然后 git 一个 ruby-china git clone https://github.com/ruby-china/ruby-china.git 然后 bundle
我就不信这几步中间能出错...
这一段是我从 gitlab 的 centos 部署文档里复制下来的,gitlab 是用 rails 框架的,我按照这个文档部署 gitlab 没有问题,希望你也能成
logged in as root
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Install the required tools for gitlab and gitolite
logged in as root
yum -y groupinstall 'Development Tools'
### 'Additional Development'
yum -y install vim-enhanced httpd readline readline-devel ncurses-devel gdbm-devel glibc-devel \
tcl-devel openssl-devel curl-devel expat-devel db4-devel byacc \
sqlite-devel gcc-c++ libyaml libyaml-devel libffi libffi-devel \
libxml2 libxml2-devel libxslt libxslt-devel libicu libicu-devel \
system-config-firewall-tui python-devel redis sudo mysql-server wget \
mysql-devel crontabs logwatch logrotate sendmail-cf qtwebkit qtwebkit-devel \
perl-Time-HiRes
IMPORTANT NOTE About Redhat EL 6
During an installation on an official RHEL 6.3 we found that some packages (in our case gdbm-devel, libffi-devel and libicu-devel) were NOT installed. You MUST make sure that all the packages are installed. The simplest way is to run the above command for a second time and you'll see quite easily of everything is either already installed or "No package XXX available". When you run into this issue you can try installing these required packages from the CentOS distribution.
logged in as root
yum -y update
#9 楼 @keating @zj0713001 curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
各位,遇到这个了问题不?
rvm autolibs rvm_pkg
rvm install 2.1.1
直接 rvm autolibs rvm_pkg
RVM 将自动处理 libyaml、readline 之类的库安装的问题