Jail apache instalation using ports on 9.3

Status
Not open for further replies.

Bruno Salvador

Dabbler
Joined
Mar 27, 2014
Messages
25
Hello, I just have updated my FreeNAS box to 9.3 and created a new jail.
The idea was to install a webserver, but I cannot install apache24.
portsnap fetch
portsnap extract
portsnap update

Still cannot install PHP, or apache.
Seems that the ports feature has some bugs.
Are you having troubles with the jails and ports?

I have reported at https://bugs.freenas.org/issues/7194

Code:
root@server:/usr/ports/www/apache24 # make install clean
===> apache24-2.4.10_2 depends on file: /usr/local/bin/autoconf-2.69 - not found
===> Verifying install for /usr/local/bin/autoconf-2.69 in /usr/ports/devel/autoconf
===> autoconf-2.69 depends on executable: gm4 - found
===> autoconf-2.69 depends on executable: help2man - not found
===> Verifying install for help2man in /usr/ports/misc/help2man
===> help2man-1.43.3_1 depends on package: p5-Locale-gettext>=0 - not found
===> Verifying install for p5-Locale-gettext>=0 in /usr/ports/devel/p5-Locale-gettext
===> Installing for p5-Locale-gettext-1.05_4
===> p5-Locale-gettext-1.05_4 depends on file: /usr/local/bin/perl5.18.4 - found
===> p5-Locale-gettext-1.05_4 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so.9)
===> Checking if p5-Locale-gettext already installed
===> Registering installation for p5-Locale-gettext-1.05_4 as automatic
pkg-static: Unable to access file /usr/ports/devel/p5-Locale-gettext/work/stage/usr/local/lib/perl5/site_perl/mach/5.16/auto/Locale/
gettext/gettext.so: No such file or directory
pkg-static: Unable to access file /usr/ports/devel/p5-Locale-gettext/work/stage/usr/local/lib/perl5/site_perl/mach/5.16/Locale/gette
xt.pm: No such file or directory
pkg-static: Unable to access file /usr/ports/devel/p5-Locale-gettext/work/stage/usr/local/lib/perl5/site_perl/man/man3/Locale::gette
xt.3.gz: No such file or directory
*** [fake-pkg] Error code 74

Stop in /usr/ports/devel/p5-Locale-gettext.
*** [build-depends] Error code 1

Stop in /usr/ports/misc/help2man.
*** [install] Error code 1

Stop in /usr/ports/misc/help2man.
*** [build-depends] Error code 1

Stop in /usr/ports/devel/autoconf.
*** [build-depends] Error code 1

Stop in /usr/ports/www/apache24.
*** [install] Error code 1

Stop in /usr/ports/www/apache24.
root@server:/usr/ports/www/apache24 #
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I think there's an issue with dependencies. 'pkg install p5-Locale-gettext' might fix it.

why are you compiling from ports? you don't want to use 'pkg install'?
 

Bruno Salvador

Dabbler
Joined
Mar 27, 2014
Messages
25
Dont work.

Therefore the apache24 is running now, It was missing one library that I found on internet to solve it...
ports is definitively not working on this 9.3 release.

php install ok via pkg install php56,

but tried to install the php56-extensions via ports and here is the problem.

make config
make install clean
Code:
==> php56-extensions-1.0 depends on file: /usr/local/include/php/main/php.h - found
===> php56-extensions-1.0 depends on file: /usr/local/lib/php/20131226/bz2.so - not found
===> Verifying install for /usr/local/lib/php/20131226/bz2.so in /usr/ports/archivers/php56-bz2
===> php56-bz2-5.6.3 depends on file: /usr/local/bin/phpize - found
===> php56-bz2-5.6.3 depends on file: /usr/local/bin/autoconf-2.69 - not found
===> Verifying install for /usr/local/bin/autoconf-2.69 in /usr/ports/devel/autoconf
===> autoconf-2.69 depends on executable: gm4 - found
===> autoconf-2.69 depends on executable: help2man - not found
===> Verifying install for help2man in /usr/ports/misc/help2man
===> help2man-1.43.3_1 depends on package: p5-Locale-gettext>=0 - not found
===> Verifying install for p5-Locale-gettext>=0 in /usr/ports/devel/p5-Locale-gettext
===> Installing for p5-Locale-gettext-1.05_4
===> p5-Locale-gettext-1.05_4 depends on file: /usr/local/bin/perl5.18.4 - found
===> p5-Locale-gettext-1.05_4 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so.9)
===> Checking if p5-Locale-gettext already installed
===> Registering installation for p5-Locale-gettext-1.05_4 as automatic
pkg-static: Unable to access file /usr/ports/devel/p5-Locale-gettext/work/stage/usr/local/lib/perl5/site_perl/mach/5.16/auto/Locale/
gettext/gettext.so: No such file or directory
pkg-static: Unable to access file /usr/ports/devel/p5-Locale-gettext/work/stage/usr/local/lib/perl5/site_perl/mach/5.16/Locale/gette
xt.pm: No such file or directory
pkg-static: Unable to access file /usr/ports/devel/p5-Locale-gettext/work/stage/usr/local/lib/perl5/site_perl/man/man3/Locale::gette
xt.3.gz: No such file or directory
*** [fake-pkg] Error code 74

Stop in /usr/ports/devel/p5-Locale-gettext.
*** [build-depends] Error code 1

Stop in /usr/ports/misc/help2man.
*** [install] Error code 1

Stop in /usr/ports/misc/help2man.
*** [build-depends] Error code 1

Stop in /usr/ports/devel/autoconf.
*** [build-depends] Error code 1

Stop in /usr/ports/archivers/php56-bz2.
*** [build-depends] Error code 1

Stop in /usr/ports/lang/php56-extensions.
*** [install] Error code 1

Stop in /usr/ports/lang/php56-extensions.
root@server:/usr/ports/lang/php56-extensions


Code:
root@server:/usr/ports/lang/php56-extensions # pkg install p5-Locale-gettext
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking integrity...Assertion failed: (pkgdb_ensure_loaded(j->db, p2, PKG_LOAD_
FILES|PKG_LOAD_DIRS) == EPKG_OK), function pkg_conflicts_need_conflict, file pkg
_jobs_conflicts.c, line 211.
Child process pid=38921 terminated abnormally: Abort trap: 6
root@c4server:/usr/ports/lang/php56-extensions #
root@c4server:/usr/ports/lang/php56-extensions #
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
you might want to try 'pkg upgrade' I've noticed it helps bring the package set in line with each other in the freenas jails.

you're best off asking for help in the freebsd forums/irc. this has nothing to do with a freenas plugin
 

sdspieg

Contributor
Joined
Aug 6, 2012
Messages
168
Has anybody succeeded in installing this on FreeNAS? I keep running into the exact same problems as Bruno did. And the FreeBSD forums are not much help either. Any suggestions?

UPDATE: I just tried "pkg install apache24". And that did seem to work. Don't know whether that's because of the additional things I installed based on the advice of people here and elsewhere, or whether it works like that out of the box, but I got no error messages anymore... The bad news is that I now get these errors..
Code:
[root@freenas ~]# jexec 14 csh                                                 
root@Apache:/ # service apache24 start                                         
Performing sanity check on apache24 configuration:                             
Shared object "libexpat.so.1" not found, required by "httpd"                   
Starting apache24.                                                             
Shared object "libexpat.so.1" not found, required by "httpd"                   
/usr/local/etc/rc.d/apache24: WARNING: failed to start apache24    
 
Last edited:

nello

Patron
Joined
Dec 30, 2012
Messages
351
I also installed the apache24 package with errors.

pkg install apache24


And it started with no errors:
Code:
root@mythtv:/ # /usr/local/etc/rc.d/apache24 restart
Performing sanity check on apache24 configuration:
Syntax OK
Stopping apache24.
Waiting for PIDS: 93046.
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@mythtv:/ #
 
Status
Not open for further replies.
Top