File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ruby and the fly likes Fed Up Installing Rails.... How Do I Get Rid Of The Dependencies? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Ruby
Reply Bookmark "Fed Up Installing Rails.... How Do I Get Rid Of The Dependencies?" Watch "Fed Up Installing Rails.... How Do I Get Rid Of The Dependencies?" New topic
Author

Fed Up Installing Rails.... How Do I Get Rid Of The Dependencies?

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 448
Hi Everyone,

Just moved into a project and have to make a web application in RoR. The problem is dont have any clue on installing Rails. I am trying v3.0.11 and every time i execute the command i get some dependency error. So all in all i am moving around in circles, downloading gems, trying to install, only to find i need more gems. Is there any way to do it in one step?



I am on WinXP, I have Ruby v1.9.3p0 and Gems version is 1.8.11.

Any help would be appreciated.
Mohamed Sanaulla
Bartender

Joined: Sep 08, 2007
Posts: 2693

Were you able to install rails?
On Linux environment I did have few issues with SQLlite related dependencies but then I individually resolved it and installed rails gem.

So may be you might have to resolve the dependencies? Or someone should have faced a similar issue and there might be a solution out there. Please post the solution if you are able to find one so that it will help people searching for similar issues.

But I would want the tool to resolve the dependencies and download them for me.


Mohamed Sanaulla | My Blog
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 448
I am on Windows! Till now no luck. Got an EXE file... lets see if i can install and make it work from there.
Mohamed Sanaulla
Bartender

Joined: Sep 08, 2007
Posts: 2693

Somnath Mallick wrote:I am on Windows! Till now no luck. Got an EXE file... lets see if i can install and make it work from there.


Rails installer? And its better to avoid using Instant Rails as its usually not updated with the latest version of rails/ruby.
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 448
Yes that one. I am currently uninstalling all previous traces of Ruby on my PC. Then I will see if that works. I have currently got 1.3 of that. Dont know what it has inside. But i am really frustrated. I have downloaded something around 40 gem files and still not resolved the issues!
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1300
I'd highly recommend trying out bundler: http://gembundler.com/
Mohamed Sanaulla
Bartender

Joined: Sep 08, 2007
Posts: 2693

Katrina Owen wrote:I'd highly recommend trying out bundler: http://gembundler.com/

This is the one that comes with the Rails 3 also right? So one has to run the bundle install from the rails app directory.
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1300
Yes that is correct. But you can use it with any project, and even Rails 2 projects (you just need to hand-roll the Gemfile).

One thing that can trip you up is that you may need to use instead of just so that you get all the correct dependencies loaded into the environment when you run the command. Same thing with the console:
 
 
subject: Fed Up Installing Rails.... How Do I Get Rid Of The Dependencies?
 
Threads others viewed
ERROR: Error installing mongrel
Installing Rails Issue
Gem management
Ruby on Rails question: yaml problem with scaffold generation
Rubygems
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture