Install Ror on Debian Squeeze

Debian Squeeze - Installing Ruby on Rails

My mistake...
I don't know why, but my netinst had put lenny repositories in my sources.list file. After few modifications, everything is OK.

How can I make Rails 3.1 work on Debian squeeze with MySQL Server 5.1?

Well, this is a tricky question. My current rails package latest version is 2.3.5-1.2+squeeze2 and the current mysql-server package is 5.1.49-3, both from the stable debian repositories.

However, you're trying to install RoR 3.1. That means you're not on stable or you are not trying to install it from any of the official debian repository at all (it is not wheeze nor sid).

If you can install the stable version of rails, go ahead and I bet you won't have any trouble. Otherwise, if you want the most current release I'm pretty sure you'll have to go for the dirty way. It might probably involve download a 5.5 MySQL (not from the repositories, because it isn't there) and messing with the libraries.

Remember if you require newer packages (such as newer libraries) and you don't want to use the testing repositories, you can always give debian backports a try.

how to install ruby 2.0 in debian 6?

If it's a server, you may want to take a look at RVM (https://rvm.io/). It would make your install as simple as :

curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled

Getting Rails and mod_passenger to work under Debian with packages

This seems to work:

ln -s /usr/share/rails-ruby1.8/ /usr/share/myrailsproject/vendor/rails

Error installing mysql2 gem on Debian Squeeze

It seems the the problem with the native extensions is the lack of the header files (.h)
They are typically found in the -dev libraries

sudo apt-get install libmysqlclient-dev

gem install mysql2

solves the problem for Debian/Ubuntu.

How to install ruby 1.9.2 on debian lenny?

Stop. Go back. Install whatever version of Ruby Debian has, probably 1.8.7 or 1.8.7. Then install RVM. I have some directions for using RVM with Ubuntu (sorry, not Debian, but it's close). Seriously, RVM makes installing any version of Ruby easy. Then, use RVM to install Ruby 1.9.2, you don't want 1.9.1.

This will work depending on what you want to use Ruby for. For development purposes, using RVM works really well. For server purposes, I suppose it can be used, but you might have some problems. I think RVM gives you some scripts you can use to run Ruby scripts with init scripts and cron jobs.

Or, you can just install from source. It's not hard, and it's not the debian way, but it'll get the job done. This may be preferable to installing some third party packages, where you may have no idea what they did during compile time, and how to get speedy updates in the case of a security vulnerability. Using RVM or installing manually from source, you can update whenever it's needed.



Related Topics



Leave a reply



Submit