Slashdot Log In
LinRails — Ruby On Rails For Linux
Posted by
kdawson
on Wed Jul 04, 2007 06:53 AM
from the be-the-first-on-your-block dept.
from the be-the-first-on-your-block dept.
foobarf00 writes "LinRails is a binary package that includes Ruby-1.8.6, Rubygems-0.9.4, Rails 1.2.3, Mongrel 1.0.1, MySQL-5.0.41, ncurses-5.6, OpenSSL-0.9.8e, and zlib-1.2.3. Its goal is to make it easy to get a Ruby on Rails development environment running in no time. This initial 0.1 release doesn't have a Web server in the package; opinions are solicited as to which to include."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
Whats wrong with... (Score:2, Insightful)
...up2date?
:-P
monk.e.boy
Aptitude (Score:2, Interesting)
Re: (Score:2)
Seriously, aptitude and apt-get are probably the best installation methods I've seen (except for
Re:Aptitude (Score:5, Insightful)
Windows:
1)find
2)download
3)go through installation wizard
apt:
1)if you already know package, do apt-get install
or
1)search for a package with apt-cache, aptitude, or synaptic
2)install, again without installer
or
1)find a
2)download
3)install
I don't see how
Parent
Re:Aptitude (Score:4, Insightful)
Parent
Re: (Score:2, Insightful)
dpkg-reconfigure debconf
and set the priority to low.
Anyway, packages are separated so if you just want the main package for example:
aptitude install ruby
If you want more then:
aptitude install ruby ruby-prof rubygems etc
maybe even better:
aptitude --with-recommends install ruby.
Re:Aptitude (Score:4, Informative)
Take a common program, for instance. Say, Gnumeric. And you're running Ubuntu 6.06 -- the Long Term Support release.
So you are running a release that is made for one purpose: To not change and then complain that it doesn't change? Okaydokey. The rest of us just follows the automatic Ubuntu upgrades as times go by. Sure, sometimes we have to wait for 6 months before getting the latest .x release, but personally, I really don't care.
It sounds as if you want a stable core, with application repositories closely tracking the newest available? Sounds like a decent idea for a distro. Are you sure that there isn't just such a distrobution?
I don't know about autopackage, but klik [atekon.de] seems to offer what you want. I'm sure the klik team will appreciate your contributions, at least with testing. They seem to need some server reasources, too, the search seems very slow.
Personally, I prefer to be able to have new, fairly tested software without having to bother with the actual upgrades. But I am sure you actually enjoy hunting down the 10-50 apps you use and upgrade them as needed every now and then ;p
Parent
Re:Aptitude (Score:4, Informative)
What if it's not "some random website"? What if you know that it's good software, but it isn't in any repository?
"Locate package foo. Download it, ensure dependencies are met"
Ensure that dependencies are met? Most people don't want to manually hunt down hundreds of dependencies.
"Alternatively download the source tarball and run
Try explaining that to your mother and your grandmother. You'll find out what's so hard about that.
However, the fact that some software are not in repositories is just as much of a political/social problem as a technical one. It already starts with the question: DEB or RPM? What if I want to produce DEB but I'm using an RPM distro? If I produce a DEB, will it work on all Debian-based distros? (Answer is no, unfortunately.) If I produce an RPM will it work on all RPM-based distro? (No either). What about non-DEB non-RPM distros? Etc. Making an installer on Linux would hide the package format problem, but will not solve binary compatibility problems (FooApp needs libfoo.so.4 but AwesomeLinux only provides libfoo.so.5).
Parent
Re: (Score:2, Insightful)
2/3) The difference would be that "apt-cache search" is running from the cached headers. That's equivalent to "yum -C search" - yes apt-cache is faster than yum normally because yum is downloading all the headers, unzipping the xml and combining before it does the search. I haven't ben
It does have a very good web server (Score:4, Informative)
>This initial 0.1 release doesn't have a Web server
Mongrel is a very good web server, especially for a development environment. (And the ruby package includes webbrick on top of that). Current 'best practice' deployments of RoR applications usually use a pack of Mongrels behind a load balancer (such as mod_proxy or Pound), and/or Apache or Nginx to serve static pages. If you want to completely mirror your production environment in your development/testing environment than including those would the logical choice.
Why not a metapackage? (Score:5, Insightful)
Even without such a metapackage, one can install this software with a single apt-get command line. Windows-based development methodology is bad enough, let's not infect linux/unix development with it.
Parent
Re: (Score:2)
And last I checked Debian didn't include Gems which is really annoying if you're learning Ruby and a book mentions a bunch of gems you should install.
Re: (Score:2)
http://packages.debian.org/stable/interpreters/ru
Is it still single-threaded? (Score:3, Interesting)
I can, on the other hand, highly recomm
Why MySQL (Score:2, Offtopic)
This is really not meant to be a flame, but pgsql is really better than mysql, so why not include the better one? Or am I wrong?
Re: (Score:2, Funny)
See, you're not the only one that can spew garbage.
Re:Why MySQL (Score:4, Insightful)
Parent
Re: (Score:3, Insightful)
Though I'm looking to move off a web-host and build a server out of my house. Everyone keeps saying PostgreSQL is better. Why? For my average use, what benefits will it offer me?
If I throw some common PHP/SQL stuff on there, will it run faster (Gallery2, LotGD, phpbb3, etc)?
Re: (Score:3, Insightful)
Though I'm looking to move off a web-host and build a server out of my house. Everyone keeps saying PostgreSQL is better. Why? For my average use, what benefits will it offer me?
If I throw some common PHP/SQL stuff on there, will it run faster (Gallery2, LotGD, phpbb3, etc)?
I know that a lot of people here will kill me and say "but you can do this in mysql too!! (somehow)", but:
- Integrity: if i delete from people where id=1; all child tables of people (telephone numbers, addresses and whatnot) are kept. On top of that you are allowed to delete the parent if it has childs. I hate this default behavior.
- ACID
- Stored Procs: You may not use them, but one day you may will. Maybe you will have to insert rows in a table after an update on another, or implement some other things th
Re: (Score:2)
- ACID - InnoDB seems to provide that for me. I've never lost data on MySQL.
- Stored Procs - We use these at work on our insanely complex MSSQL setups that I loathe, but I don't know that I'll ever have use for them on my server, and I (perhaps mistakenly) assumed this was a standard SQL feature. MySQL doesn't support stored procs?
- Triggers - I'm not sure what these are.
I'll Google some PosgreSQL vs MySQL comparisons and benchmarks.
Re: (Score:2)
- Stored Procs - We use these at work on our insanely complex MSSQL setups that I loathe, but I don't know that I'll ever have use for them on my server, and I (perhaps mistakenly) assumed this was a standard SQL feature. MySQL doesn't support stored procs?
It does, but only really basic stuff.
- Triggers - I'm not sure what these are.
You can make a trigger on a table that triggers before or after a row is inserted/updated/deleted and runs a spc or a dml statement.
Ok, on site (Score:3, Interesting)
The whole factory is run off of postgresql.
The financial system is run off of Oracle.
The timesheet system is run off of Sybase.
Guess the systems which gave the most and least problems.
The winner is PostgreSQL. Untouched for months, perhaps even years. Next we have Oracle which is a pain in the arse to manage but never failed. and last place came sybase which had to be touched, managed and/or restarted regularly[1].
In terms of transactions, the factory
Re: (Score:2)
And for a web server, why not lighttpd?. Its vastly faster. Or IIS ... fastly vaster...
Re: (Score:2)
Re: (Score:2)
This is really not meant to be a flame, but pgsql is really better than mysql, so why not include the better one? Or am I wrong?
Why MySQL? But of course, so there's something to whine about.
If you used RoR you'll figure out all advanced features of a database are left unused, so why bother.
Re: (Score:3, Informative)
For most people's web development needs MySQL just does what you need. Chances are if you need something MySQL doesn't have then you're already competent enough to not need a package like this and set it all up yourself anyway, this just makes it easier for those
Re: (Score:3, Interesting)
Re: (Score:2)
Next time you don't want to flame, please provide reasons for people to assume you're not flaming. Just stating, as if a fact, that X is better than Y without any figures to back it up or explaination why you think that is, looks a lot like flaming.
Not saying that you are, but stating something as a fact without any evidence is either A) flaming or B) religion. Some people would go so far as to equate t
Re: (Score:2)
Re: (Score:2)
Sqlite is perfect to develop with until you have something usable. Then you can switch to Postgres (or MySQL or whatever) and run your tests to make sure everything works.
MySQL == windows (Score:2)
That said, it's ass-backwards. People should fix the bug --- that some software doesn't have a database abstraction la
Fantastic (Score:5, Interesting)
After three months, the results have far exceeded my expectation. I'm very impressed with the maturity of music production apps for Linux and the performance has been as strong as I expected. I'm still a Linux noob, but the experience has been positively inspirational. In fact, it's been a lot like my first experiences with media production on my first Mac, where just about every day brought another new way to look at the work.
I'm not a programmer, but I'm learning Ruby and this new release gives me one more reason to sit down at the Linux box instead of my others.
Re: (Score:2)
Just run synaptic, find ruby on rails, and install. I think it will suggest mysql automatically. If not install that too.
You'd don't need anything more than that. Then just follow any ror tutorial on the web. It's pretty easy.
Apache? (Score:3, Interesting)
Some may argue that better alternatives exist (of which I'm not really aware) but since Apache is so popular and common place, wouldn't it seem the logical piece of this meta-package?
People who want specific packages for specific reasons are going to set up their own environment. For a pre-setup environment, shouldn't you shoot for the common setup?
Re: (Score:2, Interesting)
Agreed.
Apache is not only the most widely used web server, it is also the most supported one, of good quality, and offers countless possibilities alongside the purpose of your typical RR demo program, which is nice to have if you think like a biz.
Re:Apache? (Score:5, Informative)
Yes, I was stunned when I found this out last year. If one wants to run RoR on Apache, then one has to use either mod_fastcgi (or mod_fcgi or whatever it was called; it'd run RoR as a FastCGI process) or mod_ruby. mod_ruby seems to be abandoned, and I have heard stories about excessive memory usage. mod_f(ast)cgi doesn't seem to work on Apache 2 at all.
So there are two ways to run RoR: either in Lighttpd (which has proper FastCGI support) or in Mongrel (a web server which can run RoR directly).
Parent
Re: (Score:2, Informative)
# SetEnv RAILS_ENV development /home/Dark$ide/ruby/myapp/public/ /home/Dark$ide/ruby/myapp/log/apache.log
.cgi
/ruby /home/Dark$ide/ruby/myapp/public
.cgi
ServerName rails
DocumentRoot
ErrorLog
Options ExecCGI FollowSymLinks
AddHandler cgi-script
AllowOverride all
Order allow,deny
Allow from all
Alias
Options ExecCGI FollowSymLinks
AddHandler cgi-script
AllowOverride all
Order allow,deny
Allow from all
The .htaccess file in the public directory needs a quick tweak to match the Alias to get the rewrite rules working.
Works well.
Re: (Score:2)
The way most rails stacks are setup your webserver (I use apache for instance) gets a request.
The web server looks for the file on the disk, if it's there it sends it and that's the end.
If the file is not there, the server asks a load balancer (ModProxyBalancer, Pound, Nginx, even FastCGI*)
to send a request to one of a pool of persistent rails processes which can then handle it.
Now, if you serve up say, 5 images and 3 JS or CSS files on a page on a
Re: (Score:3, Insightful)
Re: (Score:2)
Personally; I know the brand of webserver isn't supposed to matter to the webapp, but I'm not betting any money on it. I like my development environment to be as much like production as possible
Re: (Score:2)
It doesn't hurt either. Especially since you're supposed to use as close environment to production as possible. I run Apache on my winbox for dev and I'm perfectly happy with it (next step is moving to a linux box.. but not yet).
Ask Slashdot? (Score:2)
All it would have taken was editing a word or two of the submitted story to make the implicit question more direct and, voila, there's the article...
Show me one site.... (Score:2, Interesting)
Re: (Score:2)
Mongrel is a web server (Score:3, Interesting)
Mongrel is a web server, hence this package includes a web server (unless it doesn't actually contain Mongrel, despite what the writeup says). Also, Ruby 1.8.6 comes with WEBrick, which is a the web server Rails uses by default...
Anyway isn't a simplified Rails installer for Linux kind of redundant? Most newer Linux distros I've seen already have a native package that installs Ruby on Rails and all its dependencies. Most people will probably find the Instant Rails [rubyforge.org] package a lot more useful, since it does the same for Windows.
Special Announcement (Score:5, Funny)
After months of hard work I finally bring Debian/Ubuntu/Xandros/[derivativus infinitum] users a computer program that will not only download the latest RoR development packages for you, it will also notify you of new versions when they become available later.
Moreso, all the packages I provide are registered in a special database so that should you choose to remove the below packages, you can do so with ease using a GUI button or the command line!
Please download the following code into your computer terminal and compile it by hitting ENTER (one-key compile for convenience).
sudo apt-get update ; sudo apt-get install rails ruby rubygems libruby1.8-extras mysql libncurses-ruby openssl libzlib-ruby
The above program is licensed under the "Why Make It Harder Than It Needs 2B License". Please use this link [debian.org] to make a donation to my project.
Re:Special Announcement (Score:4, Informative)
"We decided to this so that we can share the same development environment with all the team. If programmers have a different Linux distro/version, they will still share the same development environment. This prevents programmers to say "well, it works on mine" when there is a problem. Also if you have a Linux distro package, versions may change when a new Linux distro is released. Also if you want to upgrade to the latest and greatest you are at the mercy of the Linux distribution. We will try to always have the latest versions of each tool. This helps to solve those problems."
Parent
Not really necessary (Score:2)
A bit off topic, but useful advice: I set up editor projects (TextMate, gedit, etc.) for:
1.
2.
W
Re: (Score:2)
Re: (Score:2)
Good application architecture is independent of language, but the common commercial j2ee platforms automate the creations of layers of bloat that needs expensive hardware and large numbers of servers to power. And the latest craze with SOA just puts middleware on your middleware, more bloat and even more serve