LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-27-2008, 12:50 PM   #1
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,142
Blog Entries: 29

Rep: Reputation: 119Reputation: 119
Any issues installing Ruby Gems and Ruby on Rails in Slackware?


Hi all,

I'm planning on giving Ruby on Rails a spin. There's a slackbuild script available at Slackbuilds.org, for Ruby Gems, the package manager for Ruby libraries. Ruby on Rails is one of those libraries/extensions.

In light of this statement on Debian's position on Ruby extras, I'm wondering if anyone has had trouble with Ruby extras in Slackware.

I understand how Slackware packages work. I don't really know, beyond the general concept, how Debian packages work. I have no experience (yet) with Ruby, but the documentation doesn't seem to indicate potential problems.

Has anyone installed Ruby Gems in Slackware? How about Rails? If so, were there any problems I should look out for?

Thanks,

-Drew
 
Old 10-28-2008, 06:31 AM   #2
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Blog Entries: 2

Rep: Reputation: 30
Hello Lufbery,

I have installed Rails with Slackbuild's Gem package and I do not seem to have any problems as of yet. I have set up a working Rails application using Mysql and everything seems to work fine.

Naturally, the main problem with Rubygem is having two different packaging systems on one computer. This can potentially create dependency issues and problems with packaging systems overwriting and overlapping files of the other parallel packaging systems, just to name a few. But that doesn't mean it is impossible for more than one packaging system to coexist. It most probably depends on the packaging system at hand.

For example, Debian has a very tight file hierarchy and packaging system, so they usually are not very tolerant for other packaging systems to be used. There has been much heat between the Rubygem and Debian community.

Slackware, on the other hand, while it shares a very similar file structure as Debian (not exactly, but same FHS philosophy), has a lighter packaging system, so it seems the Slackware community generally does not make a fuss with rubygems. However, that is not to say that there no potential problems.

You can get somewhat around this problem by installing rubygems in an alternate location other than the base Slackware system hierarchy:
http://www.rubygems.org/read/chapter/3

Murdock

Last edited by Murdock1979; 10-28-2008 at 06:39 AM.
 
Old 10-28-2008, 07:51 AM   #3
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,142
Blog Entries: 29

Original Poster
Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by Murdock1979 View Post
Hello Lufbery,

I have installed Rails with Slackbuild's Gem package and I do not seem to have any problems as of yet. I have set up a working Rails application using Mysql and everything seems to work fine.

---snip---

Slackware, on the other hand, while it shares a very similar file structure as Debian (not exactly, but same FHS philosophy), has a lighter packaging system, so it seems the Slackware community generally does not make a fuss with rubygems. However, that is not to say that there no potential problems.

You can get somewhat around this problem by installing rubygems in an alternate location other than the base Slackware system hierarchy:
http://www.rubygems.org/read/chapter/3

Murdock
Murdock,

Thanks for the reply and the reassurance! I'll be installing and learning Ruby on Rails over the next few weeks. I'll post questions/progress here.

Regards,

-Drew
 
Old 10-28-2008, 10:29 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,746

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
I haven't worked with ruby at all, but it seems to me that it is a perfect candiadte for installation under /opt. After all, /opt was created esepcially for programs which do not conform to normal directory hierarchy standards. /opt was created as a place where these programs can 'do their own thing' -especially with an eye towardss programs which install everything under one directory, per version. if what ruby wants is for all its' accessory packages to be installed under one main ruby directory, then that would be the same.
I would use something like --prefix=/opt/ruby-$VERSION in that case. Politics and standards aside, you can always do as you want when you do things yourself. As said, I haven't looked closely, but src2pkg may provide a convenient way to let ruby have its' own way, while still having the extras conveniently packaged and accounted for with pktools.
 
Old 10-29-2008, 10:03 AM   #5
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,142
Blog Entries: 29

Original Poster
Rep: Reputation: 119Reputation: 119
Hi Gilbert,

After a lot more reading, it looks like I'll probably be just fine installing Ruby Gems (the package manager for Ruby libraries) and then let Gems handle Ruby packages. If I want to remove stuff later, I'll remove the Ruby packages with Gems first, and then remove Gems itself with removepkg.

Ruby itself comes with Slackware. I've been playing with it and it seems pretty neat. I'm actually sort of torn between really digging into Lisp (or at least Emacs Lisp), or Ruby. I've also done some scripting with Python in the DTP application, Scribus. At least when working with a specific API for a specific application, Python seemed pretty straightforward.

Anyway, back to the topic: I can see the advantage of putting Gems in /opt, but in this case, I'm not sure it's necessary.

What I don't yet understand is which actions with Gems require one to be logged in as root. I suspect that most do because the libraries should (by default anyway) be available to all users on a system.

Regards,

-Drew
 
Old 02-07-2011, 05:29 AM   #6
theget
LQ Newbie
 
Registered: Sep 2009
Location: Spain
Distribution: Slackware64 13.1 Multilib
Posts: 8

Rep: Reputation: 0
will try it too on slackware 64 13.1 , let you know more about ...
 
Old 02-08-2011, 08:52 PM   #7
arpanetguru
Member
 
Registered: Nov 2005
Location: USA
Distribution: Slackware
Posts: 80

Rep: Reputation: 0
theget,

Were you able to install rails using gems? It seems I'm having issues.
 
Old 02-09-2011, 05:15 AM   #8
mcnalu
Member
 
Registered: Dec 2006
Location: Glasgow, UK
Distribution: Slackware 13.37 and 13.1
Posts: 389

Rep: Reputation: 60
I had no problems at all, though not being much of a ruby or rails expert I need some assistance to configure rails and sort gems dependencies, but none of those issues were specific to slackware (I'm on 13.1).
 
Old 02-09-2011, 07:22 PM   #9
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,142
Blog Entries: 29

Original Poster
Rep: Reputation: 119Reputation: 119
Egads! I'm surprised to see this thread come back up.

Rails seemed pretty cool when I played with it in 2008, but ultimately I gave up on it because the infrastructure wasn't in place for me. By infrastructure, I mean things like having a web host that handles Rails, etc.

Please keep posting your experiences with Ruby, Rails, and Slackware, though. It'll be neat to read about what others are doing, and I may just look at it again.

Regards,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing ruby on rails kathmanduite Linux - Software 6 09-27-2012 06:59 AM
Trying to install Ruby gems with setup.rb - how to make it run Bartee Linux - Newbie 2 12-24-2007 01:49 PM
PHP v Ruby/Ruby on Rails Neko_D Linux - General 4 02-08-2007 11:56 PM
Installing ruby with rails+mysql+apache on Slackware 10.2 from source paultoytoy Slackware 1 09-08-2006 12:01 PM
HOWTO put Ruby on Rails on your Slackware box Marsanghas Slackware 2 04-16-2005 04:13 PM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration