Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libuuid needed for compilation #106

Closed
FooBarWidget opened this issue May 29, 2014 · 12 comments
Closed

libuuid needed for compilation #106

FooBarWidget opened this issue May 29, 2014 · 12 comments

Comments

@FooBarWidget
Copy link
Member

From jim.zajkowski on April 11, 2008 23:18:52

What steps will reproduce the problem? 1. Built a minimal CentOS 5 VM, installed gcc, gcc-c++, httpd, httpd-devel, ruby and rubygems.
2. While compiling passenger, linking fails because libuuid not installed.

Solution is to install e2fsprogs-devel. Ideally this should be checked for.

Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=5

@FooBarWidget
Copy link
Member Author

From honglilai on April 12, 2008 00:52:55

Thanks for the report. We'll take a closer look at this after the weekend.

Cc: honglilai

@FooBarWidget
Copy link
Member Author

From honglilai on April 14, 2008 08:06:46

We tested in CentOS 5 as well, and we didn't come cross this problem.

Could you post the exact compiler error message?

@FooBarWidget
Copy link
Member Author

From jim.zajkowski on April 14, 2008 10:42:56

Sure:

In ext/apache2:

g++ -shared Utils.o Logging.o Configuration.o Hooks.o mod_passenger.o -fPIC -o mod_passenger.so -
lstdc++ -lpthread ../boost/src/libboost_thread.a -laprutil-1 -lldap -llber -ldb-4.3 -lexpat -lapr-1 -luuid -
lcrypt -lpthread -ldl
/usr/bin/ld: cannot find -luuid
collect2: ld returned 1 exit status
rake aborted!
Command failed with status (1): [g++ -shared Utils.o Logging.o Configuratio...]

Our CentOS boxes we deploy for web applications are very minimal VMs under VMware ESX. This is because
there's no good reason to need a huge environment, and we prefer to add on pieces as we need rather than
start with a huge setup and pare down.

To that end, we use a template that is derrived from a kickstart file, which installs only these things and their
dependencies, which means the install is very minimal:

%packages
e2fsprogs
lvm2
kernel
grub
httpd
mod_ssl
php
php-mysql

To that, for a rails server, I enable the CentOS centosplus repository, and then yum install ruby, ruby-irb,
ruby-doc, and ruby-devel. I download and install rubygems by hand.

For Passenger, I additionally yum install httpd-devel and gcc-c++. It will not compile unless I additionally
install e2fsprog-devel, which includes libuuid.

I've attached a typescript so you can see the whole story. The error occurs at line 7062.

Attachment: typescript

@FooBarWidget
Copy link
Member Author

From honglilai on April 14, 2008 11:04:53

Hm I wonder where that -luuid came from, I don't see it on our CentOS VM. Did you
install Apache/APR from yum or from source?

@FooBarWidget
Copy link
Member Author

From jim.zajkowski on April 14, 2008 11:39:40

Yum (yum install httpd-devel installed APR)

@FooBarWidget
Copy link
Member Author

From honglilai on April 16, 2008 15:50:47

Another bug report about this has been received: http://groups.google.com/group/phusion-passenger/browse_thread/thread/b63cbd6d3e954f74 The problem is now verified.

The installer should be adapted to check for e2fsprogs-devel on RedHat-derived distros.

Status: Accepted
Labels: Usability

@FooBarWidget
Copy link
Member Author

From honglilai on April 16, 2008 15:51:09

Labels: OpSys-Linux

@FooBarWidget
Copy link
Member Author

From jim.zajkowski on April 16, 2008 17:05:05

Or more generally, check for libuuid and provide help.

@FooBarWidget
Copy link
Member Author

From honglilai on April 22, 2008 10:08:30

According to issue #31 , Fedora 8 has the same problem.

@FooBarWidget
Copy link
Member Author

From honglilai on April 22, 2008 11:08:09

Labels: -Priority-Medium Priority-High

@FooBarWidget
Copy link
Member Author

From honglilai on April 24, 2008 05:03:05

This should be fixed in the development version (git repository). Can anyone verify?

Status: Fixed

@FooBarWidget
Copy link
Member Author

From honglilai on April 24, 2008 11:02:28

Labels: Milestone-1.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant