1752781 Members
6022 Online
108789 Solutions
New Discussion юеВ

Re: mongrel

 
SOLVED
Go to solution
Piotr Kirklewski
Super Advisor

mongrel

Hi there

I did this:

apt-get install ruby1.8-dev
apt-get install rubygems
gem install mongrelтАФinclude-dependencies

find / -name"mongrel":

/var/lib/gems/1.8/doc/mongrel-1.0.1/rdoc/files/lib/mongrel
/var/lib/gems/1.8/gems/mongrel-1.0.1/lib/mongrel
/var/lib/gems/1.8/gems/mongrel-1.0.1/doc/rdoc/files/lib/mongrel

But if I do :

mongrel_rails start -d then:
mongrel_rails: command not found

man mongrel:
No manual entry for mongrel

Is it installed at all ?

What is the next step - in order to make it working?

Cheers




Jesus is the King
5 REPLIES 5
Ivan Ferreira
Honored Contributor
Solution

Re: mongrel

If you want to find all mongrel files use:

find / -name "*mongrel*"

If you find the mongrel_rails file, ensure that the directory is in your PATH and the file has execute permissions.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Piotr Kirklewski
Super Advisor

Re: mongrel

Well I have it in two directories -wchuch one is correct?

/var/lib/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails
/var/lib/gems/1.8/bin/mongrel_rails


Jesus is the King
Ivan Ferreira
Honored Contributor

Re: mongrel

First, check that they are not symbolik links to each other, then "use the one that works" ;).
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Piotr Kirklewski
Super Advisor

Re: mongrel

I didn't install rails that was the problem:
So I did:

2. apt-get install ruby1.8-dev
3. apt-get install rubygems
4. gem install deprec
5. gem install rails --include-dependencies
6. gem install mongrel├в include-dependencies

now I have rails directories on my server but and I should do that:

rails path/to/your/new/application
cd path/to/your/new/application
ruby script/server

But when I'm doing it says:

The program 'rails' is currently not installed... blah blah balh

I move to this directory:

root@ubuntus:/var/lib/gems/1.8/bin# ls -l
total 28
-rwxr-xr-x 1 root root 413 2007-06-27 21:24 cap
-rwxr-xr-x 1 root root 408 2007-06-27 21:25 deprec
-rwxr-xr-x 1 root root 414 2007-06-27 19:45 gpgen
-rwxr-xr-x 1 root root 416 2007-06-27 19:45 mongrel_rails
-rwxr-xr-x 1 root root 404 2007-06-27 21:22 rails
-rwxr-xr-x 1 root root 401 2007-06-27 19:45 rake
-rwxr-xr-x 1 root root 413 2007-06-27 21:24 rb-keygen

and : rails -v

The program 'rails' is currently not installed... blah blah balh

What is wrong ?

Jesus is the King
Piotr Kirklewski
Super Advisor

Re: mongrel

PATH= /var/lib/gems/1.8/bin/:$PATH
Jesus is the King