yum -y install make gcc openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel gettext-devel ncurses-devel sqlite3-devel mysql-devel httpd-devel wget which yum install php-mysql mysql mysql-server /sbin/chkconfig --levels 235 mysqld on /etc/init.d/mysqld start #/usr/bin/mysqladmin -u root password 'new-password' cd /usr/local/src wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz tar xzvf yaml-0.1.4.tar.gz cd yaml-0.1.4 ./configure --prefix=/usr/local make make install cd .. tar xzvf ruby-1.9.3-p0.tar.gz cd ruby-1.9.3-p0 ./configure --prefix=/usr/local --disable-install-doc --with-opt-dir=/usr/local/lib make make install gem update --system gem install rake gem install rails gem list gem install mysql2 mkdir ruby cd ruby rails new first_project cp config/database.mysql.yml config/database.yml#edit config/database.yml and specify database names and authentication details. #edit your Gemfile and uncomment only your chosen database. #create databaserake db:create****ERROR Could not find a JavaScript runtime
Solution: cd /usr/local/src wget http://nodejs.org/dist/v0.6.7/node-v0.6.7.tar.gz tar xzvf node-v0.6.7.tar.gz cd node-v0.6.7 ./configure make make install#setttings
cp config/settings.yml.example config/settings.yml #Edit config/settings.yml and configure any required settings, such as your host, base URL and language
Install ruby-1.9.3-p0.tar.gz
- Fix -green blinking light power supply
- rake db:create -rake aborted Could not find a JavaScript runtime