|
|
|
Sunday, 05 June 2011 15:32 |
Install RVM and pre-requirements
sudo apt-get install bash curl git
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Add these lines to ~/.bashrc:
# This loads RVM into a shell session.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
Run following to test RVM and install pre-requirements specified there:
rvm notes
In my case it was:
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
Install default Ruby 1.9.2 and test it:
rvm install 1.9.2
rvm --default ruby-1.9.2
ruby -v
Create project-specific gemset, make it default, install Rails with pre-requirements:
rvm gemset create my_project
rvm use 1.9.2@my_project --default
Then either create a new project:
gem install rails
rails my_project
Or install dependencies for an existing project:
cd my_project
gem install bundle
bundle install
 Read more: |
|
|
Thursday, 14 October 2010 09:55 |
// description of your code here
#install openssl
sudo apt-get install libssl-dev
#install curl ssl
./configure --with-ssl;make;make install
./configure --enable-fastcgi --with-mysql=/usr/bin/mysql --with-mysqli=/usr/bin/mysql_config --with-pdo-mysql=/usr/bin/mysql --with-zlib --with-pcre-regex --with-pear --with-curl --with-dom --enable-pcntl --enable-tokenizer --enable-force-redirect --enable-json --enable-dom --enable-apc --enable-memcache --with-curl --with-gettext --enable-mbstring --enable-mbstr-enc-trans --enable-soap --with-openssl
'./configure' '--prefix=/servers/php' '--disable-all' '--disable-debug' '--disable-rpath' '--enable-ctype' '--enable-hash' '--enable-simplexml' '--enable-spl' '--enable-xmlreader' '--enable-xmlwriter' '--enable-pcntl' '--enable-track-vars=yes' '--enable-bcmatch=yes' '--enable-bcmath' '--enable-sysvshm' '--enable-inline-optimization' '--enable-pic' '--enable-memory-limit=yes' '--enable-ftp' '--enable-sockets' '--enable-posix' '--enable-session' '--enable-mime-magic' '--enable-mbstring' '--enable-soap' '--enable-libxml' '--enable-xml' '--with-mysql=/servers/mysql' '--with-mysqli=/servers/mysql/bin/mysql_config' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-mcrypt' '--with-gettext' '--with-pcre-regex' '--with-pear' '--with-curl' '--with-dom' '--with-mhash=/servers/apache/sys' '--with-iconv' '--with-cdb' '--with-gd' '--with-freetype-dir' '--with-xpm-dir=/usr/lib/' '--enable-shmop--enable-pcntl' '--with-openssl' '--enable-tokenizer' '--enable-fastcgi' '--enable-discard-path' '--enable-force-redirect' '--enable-json' '--with-config-file-path=/servers/php/lib/' '--with-config-file-scan-dir=/servers/php/lib/' '--enable-dom'
#later test curl with ssl support 'curl https://www.stanford.edu/'
 Read more: |
|
|
|
|
|
|