Problems installing on Ubuntu 8.04

8 views
Skip to first unread message

nick gorbikoff

unread,
Dec 16, 2008, 7:23:10 PM12/16/08
to Phusion Passenger Discussions
Hi, All.

Trying to install Ubuntu package on my new and shiny Ubuntu 8.04
system that has nothing else installed other than the defaults.

I had great success before with passenger on Debian but ubuntu has me
stuck. Don't know what to do here.

I installed emterprise ruby, and made system ruby, but changing my
path.
Then I'm trying to run passenger installer, but I get this error,
after it makes sure that I have all the prerequisites:

++++++++++++++++++++++++++++++++
Compiling and installing Apache 2 module...
cd /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.0.6
/opt/ruby-enterprise/bin/ruby -S rake clean apache2
/opt/ruby-enterprise/bin/ruby: No such file or directory -- rake
(LoadError)

--------------------------------------------
It looks like something went wrong

++++++++++++++++++++++++++++++++

thou ruby -v returns ruby version and rake works as well.
I have it running on my Debian Etch server just fine with the same
configurations.



I need to have it running on Ubuntu per requirements or I would go
with Debian.


Google search revealed nothing so far.

I would appreciate if anyone had any ideas.


nick gorbikoff

unread,
Dec 16, 2008, 7:25:28 PM12/16/08
to Phusion Passenger Discussions
I noticed some typos, let me clear this up:

what I meant is that I made ruby-enterprise my default ruby
installation by modifying my path.
That's the only copy of ruby I have. I didn't do apt-get ruby or ruby
from source or anything like that.

nick gorbikoff

unread,
Dec 16, 2008, 8:14:58 PM12/16/08
to Phusion Passenger Discussions
Nevermind I think I fixed it.

Apperently the passenger that came with enterprise ruby package wasn't
good enough, the other package provided by brightbox - worked like a
charm.

Hongli Lai

unread,
Dec 16, 2008, 8:21:23 PM12/16/08
to phusion-...@googlegroups.com
nick gorbikoff wrote:
> ++++++++++++++++++++++++++++++++
> Compiling and installing Apache 2 module...
> cd /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.0.6
> /opt/ruby-enterprise/bin/ruby -S rake clean apache2
> /opt/ruby-enterprise/bin/ruby: No such file or directory -- rake
> (LoadError)

You need to install Rake via Ruby Enterprise Edition's 'gem' command.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Isaac

unread,
Dec 22, 2008, 1:10:01 AM12/22/08
to Phusion Passenger Discussions
I was having the same issue on Ubuntu 8.10

Rake was already installed by REE but wasn't being found by the
passenger installer.
(REE was installed in /opt also and so wasn't in the standard Ubuntu
path)

This commit here fixed the issue for me:
http://github.com/isaac/passenger/commit/4d8762de82aa4fd5ebc98c27c9cd658a4fcde4a8

I sent a pull request through to FooBarWidget but not sure if it got
through. (I didn't get the normal javascript confirmation)

Cheers,
Isaac

On Dec 17, 2:21 pm, Hongli Lai <hon...@phusion.nl> wrote:
> nick gorbikoff wrote:
> > ++++++++++++++++++++++++++++++++
> > Compiling and installing Apache 2 module...
> > cd /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.0.6
> > /opt/ruby-enterprise/bin/ruby -S rake clean apache2
> > /opt/ruby-enterprise/bin/ruby: No such file or directory -- rake
> > (LoadError)
>
> You need to install Rake via Ruby Enterprise Edition's 'gem' command.
>
> --
> Phusion | The Computer Science Company
>
> Web:http://www.phusion.nl/
> E-mail: i...@phusion.nl

Hongli Lai

unread,
Dec 22, 2008, 8:34:12 AM12/22/08
to phusion-...@googlegroups.com
Isaac wrote:
> I was having the same issue on Ubuntu 8.10
>
> Rake was already installed by REE but wasn't being found by the
> passenger installer.
> (REE was installed in /opt also and so wasn't in the standard Ubuntu
> path)
>
> This commit here fixed the issue for me:
> http://github.com/isaac/passenger/commit/4d8762de82aa4fd5ebc98c27c9cd658a4fcde4a8
>
> I sent a pull request through to FooBarWidget but not sure if it got
> through. (I didn't get the normal javascript confirmation)

Hi Isak. I've replied to you on Github.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl

Thomas Balthazar

unread,
Dec 25, 2008, 5:28:25 PM12/25/08
to phusion-...@googlegroups.com
Hello,

I'm having the same problem : rake is not found by the passenger installer :

Compiling and installing Apache 2 module...
cd /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/passenger-2.0.6
/opt/ruby-enterprise-1.8.6-20081215/bin/ruby -S rake clean apache2
/opt/ruby-enterprise-1.8.6-20081215/bin/ruby
:
No such file or directory -- rake
(
LoadError
)

Is there a solution to this problem?

Best,
Thomas.

Hongli Lai

unread,
Dec 25, 2008, 5:31:24 PM12/25/08
to phusion-...@googlegroups.com
Thomas Balthazar wrote:
> Hello,
>
> I'm having the same problem : rake is not found by the passenger installer :
>
> Compiling and installing Apache 2 module...
> cd /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/passenger-2.0.6
> /opt/ruby-enterprise-1.8.6-20081215/bin/ruby -S rake clean apache2
> /opt/ruby-enterprise-1.8.6-20081215/bin/ruby
> :
> No such file or directory -- rake
> (
> LoadError
> )
>
> Is there a solution to this problem?

You need to install Rake for REE:
/opt/ruby-enterprise-.../bin/gem install rake

Thomas Balthazar

unread,
Dec 25, 2008, 5:39:47 PM12/25/08
to phusion-...@googlegroups.com
Thanks for your quick answer.
I did :
# /opt/ruby-enterprise-1.8.6-20081215/bin/gem install rake
# /opt/ruby-enterprise-1.8.6-20081215/bin/ruby
/opt/ruby-enterprise-1.8.6-20081215/bin/gem install passenger
# /opt/ruby-enterprise-1.8.6-20081215/bin/ruby
/opt/ruby-enterprise-1.8.6-20081215/bin/passenger-install-apache2-module

and I still get the same error :
Compiling and installing Apache 2 module...
cd /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/passenger-2.0.6
/opt/ruby-enterprise-1.8.6-20081215/bin/ruby -S rake clean apache2
/opt/ruby-enterprise-1.8.6-20081215/bin/ruby
:
No such file or directory -- rake
(
LoadError
)

I'm on Ubuntu 8.04.1.

Any idea?

Best,
Thomas.

Thomas Balthazar

unread,
Dec 26, 2008, 4:52:38 AM12/26/08
to phusion-...@googlegroups.com
I came up with a solution, which is more a quick and dirty fix than a solution :

# ln -s /opt/ruby-enterprise-1.8.6-20081215/bin/rake /usr/bin/rake

Passenger then install correctly.
Maybe Isaac's commit on GitHub will solve the problem for real.

Thomas.

Mike Bailey

unread,
Jan 25, 2009, 4:17:09 AM1/25/09
to Phusion Passenger Discussions
This fixed it for me.

export PATH=/opt/ruby-enterprise-1.8.6-20090113/bin:$PATH
/opt/ruby-enterprise-1.8.6-20090113/bin/passenger-install-apache2-
module

- Mike


On Dec 26 2008, 8:52 pm, "Thomas Balthazar" <gro...@suitmymind.com>
wrote:
> >> E-mail: i...@phusion.nl

ujohnc00

unread,
Jan 28, 2009, 7:13:39 PM1/28/09
to Phusion Passenger Discussions
Same error as everyone here.

Initial output:
>>>
--------------------------------------------
Compiling and installing Apache 2 module...
cd /opt/ruby-enterprise-1.8.6-20090113/lib/ruby/gems/1.8/gems/
passenger-2.0.6
/opt/ruby-enterprise-1.8.6-20090113/bin/ruby -S rake clean apache2
/opt/ruby-enterprise-1.8.6-20090113/bin/ruby: No such file or
directory -- rake (LoadError)

--------------------------------------------
It looks like something went wrong
>>>

Then I did this:
>>>
sudo /opt/ruby-enterprise-1.8.6-20090113/bin/gem install rake
Successfully installed rake-0.8.3
1 gem installed
Installing ri documentation for rake-0.8.3...
Installing RDoc documentation for rake-0.8.3...
>>>

This made no difference.

I even tried this:
>>>
export PATH=/opt/ruby-enterprise-1.8.6-20090113/bin:$PATH
>>>

Still, no luck.

Any help here? I'm on Ubuntu 8.04, and had previously installed
Passenger via the Brightbox package.

Thanks,
Chris



On Dec 16 2008, 4:23 pm, nick gorbikoff <nick.gorbik...@gmail.com>
wrote:

ujohnc00

unread,
Jan 29, 2009, 6:05:52 PM1/29/09
to Phusion Passenger Discussions
Just for the record, I solved this by running the export command from
a sudo session ("sudo -s").
Still seems like unexpected behaviour.
-Chris
Reply all
Reply to author
Forward
0 new messages