Thursday, February 7, 2008

Installing in production - rails install.

I am attempting to install rails by following the guide on this page from the SilverRack blog:

https://silverrack.com/posts/1

It seems to be ok, but you should know that you will have to compile some stuff, so it is missing the part where you do that. You can do that using:

yum install gcc*

The ftp sit he listed doesn't have that file anymore, so I had to just 1.8.5 without the p12.

I also didn't know how to get the file from the http protocol, but I'm trying to use wget instead.

wget worked perfect. so did the gems install. so far, so good!

when I attempted

gem install rmagick

It didn't work. It complained: Can't find libMagick or one of the dependent libraries. Check the mkmf.log file for more detailed information.

I'm gonna try skipping that. I'm not sure I need RMagick (what is it...)

Everything worked fine until:
make && make install from gem directory
it gave me:
[root@apgtest mysql-2.7]# make && make install from gem directorygcc -I. -I. -I/usr/local/lib/ruby/1.8/i686-linux -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fPIC -g -O2 -c mysql.cgcc -shared -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -o mysql.so mysql.o -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto -ldl -lcrypt -lm -lc/usr/bin/install -c -m 0755 mysql.so /usr/local/lib/ruby/site_ruby/1.8/i686-linuxmake: *** No rule to make target `from'. Stop.

I realized I was kind of stupid. I should have left off the 'from gem directory'. I think it probably worked just fine.

It's late: 12:58 AM. I just started on this line:
vi /etc/httpd/conf/httpd.conf (comment out mod_ssl, change DocumentRoot to valid folder)
I'll work on it a bit more another day...

No comments: