LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-11-2008, 02:57 PM   #1
I_AM
Member
 
Registered: Mar 2005
Posts: 103

Rep: Reputation: 15
Ruby


My rails application does not start, it displays a 404 error. The application log (public_html/user/log/production.log) contains:

"MissingSourceFile (no such file to load -- postgres)"

The error message in the log file contains:
MissingSourcefile (no such file to load)

I installed Ruby Gems via whm > apache update and Ruby Rails manually. What else am I to do to get this working? Postgres was compiled as well and has always been installed.


root@server [~]# which postgres
/usr/bin/postgres



root@server [~]# php -m
[PHP Modules]
bcmath
calendar
ctype
curl
domxml
eAccelerator
exif
ftp
gd
gettext
ionCube Loader
mbstring
mcrypt
mysql
openssl
overload
pcre
pdf
pgsql
posix
pspell
session
sockets
standard
swf
tokenizer
xml
xmlrpc
Zend Optimizer
zlib

[Zend Modules]
Zend Extension Manager
Zend Optimizer
the ionCube PHP Loader
 
Old 03-11-2008, 03:16 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
It's probably referring to the Ruby gem named "postgres" and not just the database. It's case sensitive as well. Now, go read up on Ruby, it'll probably do you good if you're going to deal with Ruby on Rails web applications.

This should list the gems installed:

Code:
gem list | egrep -v "^( |$)"
And listing your PHP modules is kind of pointless, PHP has nothing to do with Ruby.

Last edited by trickykid; 03-11-2008 at 03:19 PM.
 
Old 03-11-2008, 03:20 PM   #3
I_AM
Member
 
Registered: Mar 2005
Posts: 103

Original Poster
Rep: Reputation: 15
Sure pointless, but I listed it to show that postgres was installed, so not so pointless after all.

root@server [~]# gem list | egrep -v "^( |$)"
*** LOCAL GEMS ***
actionmailer (2.0.2, 2.0.1, 1.2.5)
actionpack (2.0.2, 2.0.1, 1.12.5)
actionwebservice (1.1.6)
activerecord (2.0.2, 2.0.1, 1.14.4)
activeresource (2.0.2, 2.0.1)
activesupport (2.0.2, 2.0.1, 1.3.1)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.9)
fastthread (1.0.1)
fcgi (0.8.7)
gem_plugin (0.2.3)
mongrel (1.1.4)
rails (2.0.2, 2.0.1, 1.1.6)
rake (0.8.1, 0.7.1)
rubygems-update (1.0.1)
sources (0.0.1)
 
Old 03-11-2008, 03:23 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by I_AM View Post
Sure pointless, but I listed it to show that postgres was installed, so not so pointless after all.

root@server [~]# gem list | egrep -v "^( |$)"
*** LOCAL GEMS ***
actionmailer (2.0.2, 2.0.1, 1.2.5)
actionpack (2.0.2, 2.0.1, 1.12.5)
actionwebservice (1.1.6)
activerecord (2.0.2, 2.0.1, 1.14.4)
activeresource (2.0.2, 2.0.1)
activesupport (2.0.2, 2.0.1, 1.3.1)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.9)
fastthread (1.0.1)
fcgi (0.8.7)
gem_plugin (0.2.3)
mongrel (1.1.4)
rails (2.0.2, 2.0.1, 1.1.6)
rake (0.8.1, 0.7.1)
rubygems-update (1.0.1)
sources (0.0.1)
I don't see postgres in that gem list, so that's most likely the problem. Install the postgres gem and you should be golden. And it's not referring to the database. And it is pointless to list PHP modules when you're dealing with Ruby, again, Ruby is not PHP, they have nothing in common but being a programming language.
 
Old 03-11-2008, 03:40 PM   #5
I_AM
Member
 
Registered: Mar 2005
Posts: 103

Original Poster
Rep: Reputation: 15
Thanks, I installed it. I appreciate your kind help
 
Old 03-11-2008, 05:36 PM   #6
I_AM
Member
 
Registered: Mar 2005
Posts: 103

Original Poster
Rep: Reputation: 15
Ok, still not working after installing postgres module via whm > Module Installers.

root@server [~]# gem list | egrep -v "^( |$)"
*** LOCAL GEMS ***
actionmailer (2.0.2, 2.0.1, 1.2.5)
actionpack (2.0.2, 2.0.1, 1.12.5)
actionwebservice (1.1.6)
activerecord (2.0.2, 2.0.1, 1.14.4)
activeresource (2.0.2, 2.0.1)
activesupport (2.0.2, 2.0.1, 1.3.1)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.9)
fastthread (1.0.1)
fcgi (0.8.7)
gem_plugin (0.2.3)
mongrel (1.1.4)
rails (2.0.2, 2.0.1, 1.1.6)
rake (0.8.1, 0.7.1)
rubygems-update (1.0.1)
sources (0.0.1)


However, see screenshot of whm where I installed the module. It shows up there, but not in command line.

http://aycu11.webshots.com/image/489...2274507_rs.jpg

Still getting this in error logs

"no such file to load -- postgres"

And page shows 404.
 
Old 03-11-2008, 11:12 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by I_AM View Post
Ok, still not working after installing postgres module via whm > Module Installers.

root@server [~]# gem list | egrep -v "^( |$)"
*** LOCAL GEMS ***
actionmailer (2.0.2, 2.0.1, 1.2.5)
actionpack (2.0.2, 2.0.1, 1.12.5)
actionwebservice (1.1.6)
activerecord (2.0.2, 2.0.1, 1.14.4)
activeresource (2.0.2, 2.0.1)
activesupport (2.0.2, 2.0.1, 1.3.1)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.9)
fastthread (1.0.1)
fcgi (0.8.7)
gem_plugin (0.2.3)
mongrel (1.1.4)
rails (2.0.2, 2.0.1, 1.1.6)
rake (0.8.1, 0.7.1)
rubygems-update (1.0.1)
sources (0.0.1)


However, see screenshot of whm where I installed the module. It shows up there, but not in command line.

http://aycu11.webshots.com/image/489...2274507_rs.jpg

Still getting this in error logs

"no such file to load -- postgres"

And page shows 404.
How did you install it? I'd say, trust the command line, not the GUI.
 
Old 03-12-2008, 12:11 AM   #8
I_AM
Member
 
Registered: Mar 2005
Posts: 103

Original Poster
Rep: Reputation: 15
I installed Ruby Gems via command line (cpanel script) and ruby postgres gem via whm interface
 
Old 03-12-2008, 08:28 AM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by I_AM View Post
I installed Ruby Gems via command line (cpanel script) and ruby postgres gem via whm interface
Don't trust the cpanel script, install it manually as it might have put it in another location perhaps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby SDL/ Ruby OpenGL tutorials/reference? LinuxNoob75 Programming 0 12-30-2007 12:47 PM
ruby dellthinker Linux - Server 2 12-19-2007 08:00 PM
ruby aiman Linux - Software 1 05-26-2007 01:29 PM
PHP v Ruby/Ruby on Rails Neko_D Linux - General 4 02-08-2007 11:56 PM
[Ruby] Tar'ing or Zip'ing with ruby script lmcilwain Programming 2 01-19-2007 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration