![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ruby+rails
文章平均质量分 56
janne09
这个作者很懒,什么都没留下…
展开
-
ubuntu打开pdf文件及自定义命令
1.打开pdf文件文件所在目录:/home/xxx/book终端执行命令:evince /home/xxx/book/filename.pdf或者:xdg-open /home/xxx/book/filename.pdf2.自定义命令1).进入/home/xxx目录下cd /home/xxx2).终端执行如下命令,打开.bashrc文件vi转载 2013-05-03 14:43:08 · 1039 阅读 · 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-develchkconfig mysqld on ; /etc/init.d/mysqld start原创 2013-09-05 18:57:10 · 1022 阅读 · 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-devOn Red Hat/CentOS and other distributions using yum:sudo yum install mysql-devel转载 2013-09-05 17:27:53 · 2029 阅读 · 0 评论 -
RHEL6.2(X86_64)使用CentOS YUM源更新
RedHat 6.2(64位)如何使用CentOS YUM源更新的方法 由于 redhat的yum在线更新是收费的,如果没有注册的话不能使用,如果要使用,需将redhat的yum卸载后,重启安装,再配置其他源,以下为详细过程1.删除redhat原有的yumrpm -aq|grep yum|xargs rpm -e --nodeps 卸载转载 2013-09-05 17:26:44 · 863 阅读 · 0 评论 -
ubuntu安装ruby+rails,sources ~/.bash_profile,重新启动电脑该命令不生效
使用rvm进行版本控制vim ~/.bashrc 打开.bashrc文件,将代码写入文件中 source "$HOME/.rvm/scripts/rvm"保存退出,重启电脑即可详情参考官方文档 https://rvm.io/rvm/install/章节 2. Load RVM into your shell sessions as a function转载 2013-09-13 10:04:11 · 2061 阅读 · 0 评论 -
ruby连接mysql2数据库
require 'rubygems'require 'active_record'require 'mysql2'require 'net/ssh/gateway' gateway = Net::SSH::Gateway.new( 'remotehost.com', 'username') # opens a new port on the established gatewayport =转载 2013-09-13 11:21:57 · 4852 阅读 · 0 评论 -
RVM错误和解决:"RVM is not a function, selecting rubies with 'rvm use ...' will not work."
ubuntu12When you run a rvm command such as$ rvm use 1.9.3but receive an error message ofRVM is not a function, selecting rubies with 'rvm use ...' will not work.This error happens转载 2013-09-10 10:37:10 · 4024 阅读 · 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 DifficultyIntermediate (rss)Root privileges转载 2013-09-06 12:19:35 · 1011 阅读 · 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-get install python-software-properties sudo add-apt-转载 2013-08-12 14:04:24 · 638 阅读 · 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 Rails 2.3.2 to Ruby 1.9.3 and Rails 3.1.1There转载 2013-08-07 17:48:31 · 916 阅读 · 0 评论 -
ubuntu10.04下 rails -v 提示rails未安装
在ubuntu下安装rails,每次重启后,都提示未安装railsruby -vgem -v都正常gem install rails提示安装成功,但是rails -v时,提示rails 未安装修改终端设置如下即可:原文地址:https://rvm.io/integration/gnome-terminal/转载 2013-05-03 10:22:27 · 732 阅读 · 0 评论 -
ubuntu10.04安装ruby提示Missing required packages: libgdbm-dev, libffi-dev.
一个是用rvm安装ruby的时候,出现Ruby123456Installing requirements for ubuntu, might require sudo password.Running 'apt-get --quiet --yes update' would require sudo.Cowardly refu转载 2013-05-03 10:45:50 · 1443 阅读 · 0 评论 -
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 folder: ex "cd node-v0.10.3")# ./configure# make# m转载 2013-09-25 13:11:24 · 1767 阅读 · 0 评论