Tuesday, November 24, 2009

Well it was quite pain (as a newbie) installing Pico on FreeBSD, but heres how to do that quick.

Login to SSH as root.

Sometimes, direct root login is disabled. Do this then,

# su -
# password: [Enter your WHM root pass]
# [Hostname]: [Ready to work ]

To Download ports:
# /stand/sysinstall
- Go to Configure (post install)
- Go to Distributions
- Select 'ports'
- Select 'ok'
From there select FTP transfer (ftp.freebsd.org is ok) and it should download the ports into /usr/ports. When it's done, just exist sysinstall and run the commands I stated earlier.

It'll take a while to download.

after its finished downloading, do this:

# cd /usr/ports/editors/pico
# make install

and it'd install it for you.

DONE!!

Monday, November 02, 2009

Problem install rails with gem (debian)
============================

debian:~/rubygems-1.3.5# /usr/local/bin/gem install rails

/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:10:in `require': no such file to load -- zlib (LoadError)

from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:10:in `'

from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:9:in `require'

from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:9:in `'

from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:11:in `require'

from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:11:in `


Solution

=======

apt-get install libzlib-devel


then recompile your ruby and gems



Enjoy!!