How do you install Node.JS on CentOS?

# yum install openssl-devel # cd /usr/local/src # wget http://nodejs.org/dist/node-latest.tar.gz # tar zxvf node-latest.tar.gz (cd into extracted fol...

2013-09-25 13:11:24

阅读数 1600

评论数 0

ruby连接mysql2数据库

require 'rubygems'require 'active_record'require 'mysql2'require 'net/ssh/gateway' gateway = Net::SSH::Gateway.new( 'remotehost.com', 'username') #...

2013-09-13 11:21:57

阅读数 4467

评论数 0

ubuntu安装ruby+rails,sources ~/.bash_profile,重新启动电脑该命令不生效

使用rvm进行版本控制 vim ~/.bashrc 打开.bashrc文件,将代码写入文件中  source "$HOME/.rvm/scripts/rvm" 保存退出,重启电脑即可 详情参考官方文档 https://rvm.io/rvm/install...

2013-09-13 10:04:11

阅读数 1793

评论数 0

RVM错误和解决:"RVM is not a function, selecting rubies with 'rvm use ...' will not work."

ubuntu12 When you run a rvm command such as $ rvm use 1.9.3 but receive an error message of RVM is not a function, selecting rubies with '...

2013-09-10 10:37:10

阅读数 2610

评论数 0

RHEL / Centos 6: Install Nginx Using Yum Command

ow can I install Nginx web server On CentOS Linux 6 or Red Hat Enterprise Linux 6 using yum command? Tutorial details   Diffic...

2013-09-06 12:19:35

阅读数 893

评论数 0

redhat安装ruby on rails的错误总结

redhat 安装mysql服务器: Next, install MySQL. This is the one step that RHN handles, thankfully… sudo yum install mysql mysql-server mysql-devel chk...

2013-09-05 18:57:10

阅读数 911

评论数 0

redhat bundle时Error installing mysql2: Failed to build gem native extension

On Ubuntu/Debian and other distributions using aptitude: sudo apt-get install libmysql-ruby libmysqlclient-dev On Red Hat/CentOS and other distri...

2013-09-05 17:27:53

阅读数 1803

评论数 0

RHEL6.2(X86_64)使用CentOS YUM源更新

RedHat 6.2(64位)如何使用CentOS YUM源更新的方法           由于 redhat的yum在线更新是收费的,如果没有注册的话不能使用,如果要使用,需将redhat的yum卸载后,重启安装,再配置其他源,以下为详细过程 1.删除redhat原有的yum ...

2013-09-05 17:26:44

阅读数 742

评论数 0

rails 3遇到 Could not find a JavaScript runtime execjs错误(ubuntu)

执行rails s 时提示:Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. sudo apt-ge...

2013-08-12 14:04:24

阅读数 539

评论数 0

Installing Ruby on Rails 3.1.1 with MySql on Windows-7 64-bit

Download the Savvy Digital Marketer's Guide to Social Content Marketing!. I recently upgraded my Ruby on Rails installation from Ruby 1.8.7 and ...

2013-08-07 17:48:31

阅读数 727

评论数 0

ubuntu打开pdf文件及自定义命令

1.打开pdf文件 文件所在目录:/home/xxx/book 终端执行命令: evince /home/xxx/book/filename.pdf 或者: xdg-open /home/xxx/book/filename.pdf 2.自定义命令 1).进入/home/x...

2013-05-03 14:43:08

阅读数 649

评论数 0

ubuntu10.04安装ruby提示Missing required packages: libgdbm-dev, libffi-dev.

一个是用rvm安装ruby的时候,出现 Ruby 123456Installing requirements for ubuntu, might require sudo password.Running 'apt-get --q...

2013-05-03 10:45:50

阅读数 1063

评论数 0

ubuntu10.04下 rails -v 提示rails未安装

在ubuntu下安装rails,每次重启后,都提示未安装rails ruby -v gem -v 都正常 gem install rails提示安装成功,但是rails -v时,提示rails 未安装 修改终端设置如下即可: 原文地址:https://rvm.io/in...

2013-05-03 10:22:27

阅读数 610

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭