SafeAF / enterprise-log-search-and-archive

Automatically exported from code.google.com/p/enterprise-log-search-and-archive
0 stars 0 forks source link

Missing packages installing web on Ubuntu 12.04 #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Install Ubuntu 12.04 with default setup + SSHD
2.  Install ELSA using install.sh script
3.  Error in installation

error:

----QUOTE----
--> Working on Geo::IP
Fetching http://www.cpan.org/authors/id/B/BO/BORISZ/Geo-IP-1.40.tar.gz ... OK
Configuring Geo-IP-1.40 ... N/A
! Configure failed for Geo-IP-1.40. See /home/testuser/.cpanm/build.log for 
details.
Retry 3
build_web_perl FAIL
----ENDQUOTE----

in build.log
----QUOTE----
Configuring Geo-IP-1.40
Running Makefile.PL

The GeoIP CAPI is not installed you should do that. Otherwise try

    perl Makefile.PL PP=1

to install this module anyway. It uses a slower pure perl version
and you can rebuid it later.

GeoIP must be installed prior to building Geo::IP and I can't find
it in the standard library directories. You can download GeoIP C API from:

http://www.maxmind.com/app/c

If GeoIP is installed, but in a non-standard directory, then use the
following options to Makefile.PL:

    perl Makefile.PL LIBS='-L/home/me/lib' INC='-I/home/me/include'

Note that if you build against a shareable library in a non-standard location
you may (on some platforms) also have to set your LD_LIBRARY_PATH environment
variable at run time for perl to find the library.

If you installed the GeoIP C libraries to the /usr/local/lib directory,
then you may need to add /usr/local/lib to /etc/ld.so.conf then run
/sbin/ldconfig /etc/ld.so.conf

----ENDQUOTE----

After installing package "libgeoip-dev", the web module installed correctly.

PATCH:

In install.sh, function ubuntu_get_web_packages, add package to the list.

I guess other Linux distro may have the same issue.  Unable to test

Original issue reported on code.google.com by mathieu....@gmail.com on 31 May 2012 at 12:37

GoogleCodeExporter commented 9 years ago
Fixed for Ubuntu as described in patch, added pure-Perl Geo::IP for other 
distros which should be fine.

Original comment by mchol...@gmail.com on 31 May 2012 at 2:40