Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.