This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Languages » Ruby
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: 477
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
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3056
    
  33

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: 477
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
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3056
    
  33

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: 477
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: 1347
    
  13
I'd highly recommend trying out bundler: http://gembundler.com/
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3056
    
  33

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: 1347
    
  13
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:
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Bundler is totally the way to go in Ruby-land these days.

That said, if you don't need the full Rails stack - perhaps all you're writing is a very tiny service app - then I highly recommend trying Sinatra:
http://www.sinatrarb.com/

It's super easy to get something started in Sinatra and it is compatible with deploying to Heroku.


A good workman is known by his tools.
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1347
    
  13
I second Marc's suggestion about Sinatra. I use Sinatra almost exclusively these days, both for little experiments as well as at work, where we write small, self-contained services that expose everything via a RESTful API.
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3056
    
  33

Katrina Owen wrote:I second Marc's suggestion about Sinatra. I use Sinatra almost exclusively these days, both for little experiments as well as at work, where we write small, self-contained services that expose everything via a RESTful API.

I have been planning to explore Sinatra for writing simple RESTful APIs which are then used by my application running on Android. I like its simplicity.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Mohamed Sanaulla wrote:
Katrina Owen wrote:I second Marc's suggestion about Sinatra. I use Sinatra almost exclusively these days, both for little experiments as well as at work, where we write small, self-contained services that expose everything via a RESTful API.

I have been planning to explore Sinatra for writing simple RESTful APIs which are then used by my application running on Android. I like its simplicity.

That's a perfect use case. My first exposure to Sinatra was through creating RESTful services for small iPhone apps.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fed Up Installing Rails.... How Do I Get Rid Of The Dependencies?
 
Similar Threads
Gem management
Installing Rails Issue
Rubygems
ERROR: Error installing mongrel
Ruby on Rails question: yaml problem with scaffold generation