Skip to main content

RVM with rails1.2.1 and rails 3.2.x

rvm install ext-rvm-list
\curl -L https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm automount
rvm list
whereis ruby
rvm list ruby
rvm list rubies
rvm install 1.8.7
rvm install 1.9.3
rvm list
rvm set default ruby-1.8.7-p371
rvm --help
rvm default ruby-1.8.7-p371
rvm list
gem list
yum install gcc-c++
yum install openssl
rvm pkg install openssl
rvm pkg install iconv
rvm list
rvm use ruby-1.9.3-p327
svn co http://b3.flexis.net:3001/omie_dev_r3
cd omie_dev_r3/
ls
rvm list
bundle install
yum install postgresql postgresql-devel
gem install pg -v '0.14.1'
bundle install
cd ..
cd omie_dev
ls
rvm list
rvm use ruby-1.8.7-p371
clear
ruby -v
gem install rails -v 1.2.1
gem install imagesize -v 0.1.1
gem install parseexcel 0.5.2
gem install payment -v 1.0.1
gem install pdf-writer -v 1.1.3
gem install pdfkit -v 0.5.0
gem install pg -v 0.14.0
gem install postgres -v  0.7.9.2008.01.28
gem install rmagick -v 2.13.1
gem install rubyzip -v 0.9.4
gem install simple_xlsx_writer -v 0.5.3
gem install spreadsheet -v 0.7.3
gem install tlsmail -v 0.0.1
gem install ruby-debug-ide -v 0.4.9
gem install ruby-ole -v 1.2.11.3
gem install ruby-debug-base -v 0.10.4

Comments

Popular posts from this blog

Errno::ENOENT: No such file or directory

HTML to PDF conversion is very easy in rails and pdfkit will be useful in this case, wkhtmltopdf tool will be supporting tool so you can easily convert an html to pdf.  In my experience I used the following steps: gem install pdfkit -v 0.5.0 gem install wkhtmltopdf -v 0.1.2 gem install wkhtmltopdf-binary Some times this sequence will not work, so I use the following as per the instruction from  https://github.com/pdfkit/pdfkit/wiki/Installing-WKHTMLTOPDF Be careful to download the appropriate wkhtmltopdf tar ball, it depends on your os architecture, like i386 or 64 wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2 tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2 mv wkhtmltopdf-amd64 /usr/local/bin/wkhtmltopdf chmod +x /usr/local/bin/wkhtmltopdf Try to convert html to pdf after restarting your web servers.  If you get any error like: Errno::ENOENT: No such file or directory then I have a str...

Redis & nginx configuration for websocket/actionCable

Start redis server => redis-server redis console => redis-cli view available databases => config get databases pubsub channels global* pubsub channels global_notification_2 pubsub channels global_notification pubsub channels * => Lists all the available channels pubsub numsub global_notification_2 => returns the number of subscribers From unix command line directly redis-cli PUBSUB CHANNELS redis-cli PUBSUB NUMSUB global_notification_2 [root@api prod-openmednet-api]# redis-cli PUBSUB CHANNELS 1) "_action_cable_internal" 2) "global_notification_2" [root@api prod-openmednet-api]# redis-cli PUBSUB CHANNELS global_notification_2 1) "global_notification_2" [root@api prod-openmednet-api]# redis-cli PUBSUB NUMSUB global_notification_2 1) "global_notification_2" 2) (integer) 2 NGINX configuration:  worker_processes   auto; worker_rlimit_nofile 500000;  #=> refer RLIM...

Postgres points

Export sql data to file copy (select * from table-name) to '/tmp/cta.pl.list' in root dnf install postgresql-server postgresql-devel service postgresql start mkdir /home/pgdir chown postgres:postgres /home/pgdir -R chmod 777 /home/pgdir -R  su postgres initdb -D /home/pgdir pg_ctl -D /home/pgdir -l /home/pgdir/log start