Greetings, I''ve got a Rimu account and I''m trying to config things for a deployment. I''ve now got things to where I''m atleast getting a nice error page you can see at: http://www.juiceboxmedia.ca/public/ the username and password I have connects to this database fine with phpmyadmin from my plesk control panel, so as far as I know MySQL on it''s own is working fine. I am pretty much a linux noob, have little to no server admin experience. I''m more than happy to learn and would actually prefer to learn this all - can anyone point me to where I should be looking for the problem and what it might be? I''ve done some googling and whatnot but I''m more than scared that if I start hacking around I''ll muck things up. Cheers for your time. Jason -- Posted via http://www.ruby-forum.com/.
Doing some further digging, I notice that in /tmp/mysql.sock is a symlink to /var/lib/mysql/mysql.sock My thoughts would be to change in my vendor/mysql.rb the following line: MYSQL_UNIX_ADDR = "/tmp/mysql.sock" to the physical location. I tried this, did a server reboot and it didn''t fix anything. -- Posted via http://www.ruby-forum.com/.
Jason, Did you use the instructions @ http://www.brainspl.at/rails_stack.html? Or did Rimu set it up for you and you went with their default install? And is it on Debian? The reason that I ask is that I have two accounts with them... One was set up manually (following those instructions), and the other they set up for rails automatically using a script based off of the above instructions. However, I haven''t been able to get the automatically built one to work... I can''t seem to include the native mysql bindings that are supposed to be installed, and I can''t get the console to work because for some reason Ruby can''t find Readline, even though it''s installed. Did you try requiring mysql from irb? Try: # irb irb(main):001:00> require ''mysql'' (press enter) you should get "=> true" in return If you get something else, I think it''s having a hard time finding the Mysql bindings... This is purely supposition, but I''ve got a support request in with Rimu right now about this problem. I didn''t have any trouble with my manually installed stack, but I seem to figure out where the auto install script went wrong. Anyone else have any better ideas? I''m not much of a Linux guru either... Matt On 6/15/06, Jason Pfeifer <jpfeifer@shaw.ca> wrote:> > Doing some further digging, I notice that in /tmp/mysql.sock is a > symlink to /var/lib/mysql/mysql.sock > > My thoughts would be to change in my vendor/mysql.rb the following line: > MYSQL_UNIX_ADDR = "/tmp/mysql.sock" to the physical location. > > I tried this, did a server reboot and it didn''t fix anything. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060615/7db0f3c2/attachment-0001.html
> installed, and I can''t get the console to work because for some reason > Ruby > can''t find Readline, even though it''s installed. > > Did you try requiring mysql from irb?Yes, I get the same readline error that you said - so I can''t get into the console to check it out. How do you find the manual install? I''ve been having problems with the automatic, but I wanted a reseller account with the plesk panel. Do you think reselling is something that I can manage without an admin panel like plesk? Considering that I don''t know how to do much from the command line and such? I don''t mind learning all of this, I''d actually like to but I also need to get a client app up soon so I can eat some food this month. Let me know how your submitted ticket goes Jason -- Posted via http://www.ruby-forum.com/.
Jason, I would expect (just a guess, haven''t used Plesk) that you should be able to do the manual install without any problems. Basically what Rimu does is when you request Rails on a server, they run an automatic script called rails-debian.sh that automates installing all of the .deb packages required to run Ruby, Rails, Lighty, etc... The manual install is no biggie. Ezra was super detailed in his instructions, so I didn''t have much trouble with that. The only other thing I did was install supervise to make sure my stuff stays up, svnserve for SVN hosting for Capistrano deployments. If I can''t get the script they used to work, I''m just gonna have ''em install a new Debian image so that I can start from scratch. I really want to know why the script didn''t work, though, because it seems like it shouldn''t be a problem. Perhaps someone with more UNIX skillz than myself can figure it out... The script is available as an attachment @ http://bliki.rimuhosting.com/space/knowledgebase/linux/miscapplications/ruby+on+rails Either way, I''ll let you know what Rimu has to say. Matt On 6/15/06, Jason Pfeifer <jpfeifer@shaw.ca> wrote:> > > installed, and I can''t get the console to work because for some reason > > Ruby > > can''t find Readline, even though it''s installed. > > > > Did you try requiring mysql from irb? > > Yes, I get the same readline error that you said - so I can''t get into > the console to check it out. > > How do you find the manual install? I''ve been having problems with the > automatic, but I wanted a reseller account with the plesk panel. Do you > think reselling is something that I can manage without an admin panel > like plesk? Considering that I don''t know how to do much from the > command line and such? I don''t mind learning all of this, I''d actually > like to but I also need to get a client app up soon so I can eat some > food this month. > > Let me know how your submitted ticket goes > > Jason > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060615/d521aabe/attachment.html
> If you get something else, I think it''s having a hard time finding the > Mysql > bindings...ok - in irb require ''mysql'' gives a ''no such file to load'' error so from the the brainsplat tutorial I try to install mysql bindings: apt-get install libmysql-ruby1.8 and that returns: Reading Package Lists... Done Building Dependency Tree... Done E: Couldn''t find package libmysql-ruby1.8 where is apt-get trying to read that from? Can I download that package, and put it on my server and try it? -- Posted via http://www.ruby-forum.com/.
Try "sudo apt-get update" to update your package lists. It should be pulling the file from one of the Debian servers... That''s actually a little strange, because mine tells me that the package is already installed, but I still can''t require it in Ruby. Matt On 6/15/06, Jason Pfeifer <jpfeifer@shaw.ca> wrote:> > > If you get something else, I think it''s having a hard time finding the > > Mysql > > bindings... > > ok - in irb require ''mysql'' gives a ''no such file to load'' error > > so from the the brainsplat tutorial I try to install mysql bindings: > apt-get install libmysql-ruby1.8 and that returns: > > Reading Package Lists... Done > Building Dependency Tree... Done > E: Couldn''t find package libmysql-ruby1.8 > > where is apt-get trying to read that from? Can I download that package, > and put it on my server and try it? > > > > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060615/a2401c7b/attachment-0001.html
sudo apt get update doesn''t do it either. It still won''t install after I update the packages. Hmmph. -- Posted via http://www.ruby-forum.com/.
I googled the readline error and came up with this article on installing on Tiger http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger In there it says that in a hidden file .bash_login you need to set a base path, and if not you will get this error for some things that use require. I don''t know where to set this, but I thought it might be a clue to something. -- Posted via http://www.ruby-forum.com/.
Jason, Yeah, that is a possibility. I think it is a path issue, but the problem is that you can''t only fix it for your user, since a rails app is going to run under a different user. This still seems like a setup problem to me, because I just can''t see why what I did manually works and what was done by the install script doesn''t work. It''s times like this that I curse all the time wasted working on ASP.Net... I coulda been getting my *NIX skills together. Matt On 6/15/06, Jason Pfeifer <jpfeifer@shaw.ca> wrote:> > I googled the readline error and came up with this article on installing > on Tiger > > http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger > > In there it says that in a hidden file .bash_login you need to set a > base path, and if not you will get this error for some things that use > require. I don''t know where to set this, but I thought it might be a > clue to something. > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060615/d33a6bcb/attachment.html