LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Any issues installing Ruby Gems and Ruby on Rails in Slackware? (https://www.linuxquestions.org/questions/slackware-14/any-issues-installing-ruby-gems-and-ruby-on-rails-in-slackware-679367/)

Lufbery 10-27-2008 12:50 PM

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

Murdock1979 10-28-2008 06:31 AM

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

Lufbery 10-28-2008 07:51 AM

Quote:

Originally Posted by Murdock1979 (Post 3323902)
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

gnashley 10-28-2008 10:29 AM

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.

Lufbery 10-29-2008 10:03 AM

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

theget 02-07-2011 05:29 AM

will try it too on slackware 64 13.1 , let you know more about ...

anon209 02-08-2011 08:52 PM

theget,

Were you able to install rails using gems? It seems I'm having issues.

mcnalu 02-09-2011 05:15 AM

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).

Lufbery 02-09-2011 07:22 PM

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,


All times are GMT -5. The time now is 01:44 AM.