Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

John http://www.red91.com

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

install openssl from source + ruby - debian

   1  
   2  //build essentials + extras (last line not needed)
   3  sudo aptitude install ssh gcc sudo build-essential make git-core subversion -y
   4  sudo aptitude install bash man-db cron wget lynx bind9 -y
   5  sudo aptitude install mysql-server mysql-client libmysqlclient15-dev libmysql-ruby sqlite3 imagemagick -y
   6  
   7  
   8  //When doing ./configure --with-openssl=/dir where /dir is some valid directory that contains lib/libssl.so file
   9  find / -name libssl.so
  10  //returns
  11  /usr/lib/libssl.so
  12  
  13  //so replace with...
  14  ./configure --prefix=/usr/local --with-openssl-dir=/usr/lib
  15  
  16  ..more...
  17  http://forums.enterprisedb.com/posts/list/41.page
  18  
  19  find / -name libssl.so*
  20  /usr/lib/libssl.so.0.9.8
  21  
  22  ..so
  23  /usr/lib as ln -s libssl.so.0.9.8 libssl.so
  24  
  25  
  26  ----ignore---- debian don't like you doing the below
  27  
  28  //beforehand, kill off any existing openssl copy
  29  sudo aptitude remove openssl
  30  rm -rf /usr/bin/openssl
  31  which openssl
  32  
  33  //now compile & install a new copy of openssl from source
  34  cd /usr/src
  35  wget http://www.openssl.org/source/openssl-0.9.8h.tar.gz
  36  tar xzf openssl-0.9.8h.tar.gz
  37  cd openssl-0.9.8h
  38  ./config --prefix=/usr
  39  sudo make
  40  sudo make test
  41  sudo make install
  42  
  43  ----ignore---- debian don't like you doing the above
  44  
  45  //now ruby 1.8.6 from source + openssl support
  46  cd /usr/src
  47  wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p114.tar.gz
  48  tar xfz ruby-1.8.6-p114.tar.gz
  49  cd ruby-1.8.6-p114
  50  ./configure --prefix=/usr/local --with-openssl-dir=/usr/lib
  51  sudo make 
  52  sudo make install
  53  
  54  
  55  
  56  //now gems from source
  57  cd /usr/src
  58  wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz
  59  tar xfz rubygems-1.2.0.tgz
  60  cd rubygems-1.2.0
  61  sudo ruby setup.rb
  62  
  63  //update with
  64  sudo gem install rubygems-update
  65  sudo update_rubygems
  66  


...more here

http://blog.mondragon.cc/articles/2007/02/03/compiling-ruby-1-8-5-w-openssl-on-debian-etch-testing-and-freebsd-in-home

no such file to load -- net/https

http://linuxbrit.co.uk/rbot/ticket/69

requires libopenssl-ruby1.8 to operate


   1  
   2  sudo aptitude install libopenssl-ruby1.8


...or compile and add ruby openssl library from source
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS