This forum is no longer active. Please post your questions to our new community site
RubyStack problems with Mac OS X Snow Leopard
|
|
I installed RubyStack today on Snow Leopard. Then I did a cd /Applications/rubystack-2.0-1/projects/rubystack, and launched rails via ruby script/server I then tried to follow the recommendations on the Welcome Aboard page. script/generate fails as follows: Rails requires RubyGems >= 1.3.2 (you have 1.3.1). Please `gem update —system` and try again. However, this is a reference to the Apple Ruby install, as the Bitnami package has installed RubyGems 1.3.5 The pwd command indicates that I’m still in the Bitnami-installed directory, so why is it going to the Apple location. gem update —system fails similarly, as it runs from /usr/local/bin. So, why do the items I installed through Bitnami’s RubyStack escape to run from /usr/local/bin when I try to use them? Do I have to make some PATH change that isn’t mentioned in the Bitnami document? Thanks, |
|
|
Hi, BitNami RubyStack is self-contained and independent of your system. You should load the Stack environment before running a Ruby command. For example, if you open a Terminal and execute “which ruby” you can see that you are running the system Ruby command. To load the environment variables you should run the “rubyconsole” before running any command:
Now you can see that you are running the Ruby Stack command. Now try to start the servers and everything should run well. |
|
|
Thanks. Your advice got me past this problem. Tom |
|
|
Now I have a new problem trying to use an existing Rails app in the RubyStack environment on Mac OS X (Snow Leopard). When I try to access the app at http://localhost:3000 or at http://127.0.0.1:3000/ I get an error from MySQL: bash-3.2$ => Booting Mongrel bash-3.2$ /!\ FAILSAFE /!\ Mon Jan 04 21:29:38 -0500 2010 The app I’m running is /Applications/rubystack-2.0-1/projects/expenses The relevant part of /Applications/rubystack-2.0-1/projects/expenses/config/database.yml is: adapter: mysql database: expenses_development timeout: 5000 username: rubystack password: babush socket: /Applications/rubystack-2.0-1/mysql/tmp/mysql.sockWhen I try to run rake db:migrate I get the same "Access denied " error: Access denied for user ’rubystack’@’localhost’ to database ‘expenses_development’ This is all the information I can find in any of the logs, except for the cascade of subsequent errors in each case. At this point, I am stumped. I would appreciate any advice. Thanks, |
|
|
Hi Tom, The connection error can be related to different things: Is the database running ? You can check this using: If not start it using
Did you create the rubystack user? You can check if it exists connecting to MySQL as ‘root’ with the password provided during installation: Was the database expenses_development created ? It should be listed if you run If both are there, check if you are able to connect using that username
If not you may create both the database and the user with appropriate privileges running:
Let us know if it works for you |
|
|
hello i have a problem with the paperclip and rmagick. Where i can find a tutorial for the correct way to do this. i have and application that i have tested on my linux machine without bitnami and works very fine. now i am in a mac machine with bitnami and a i can’t upload images. please help me |
|
|
Hi, Could you post the error which is in the mongrel.log file? |

