ports/176224: MySQL Server 5.6 requires Perl, but does not depend on it

Phil Murray pmurray at nevada.net.nz
Mon Feb 18 03:50:01 UTC 2013


>Number:         176224
>Category:       ports
>Synopsis:       MySQL Server 5.6 requires Perl, but does not depend on it
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 18 03:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Phil Murray
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD regent 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
After installing MySQL Server 5.6 from latest ports on a freshly installed 9.1 system, the rc.d script fails to run with:

[root at regent ~]# /usr/local/etc/rc.d/mysql-server onestart
/usr/local/etc/rc.d/mysql-server: WARNING: failed precmd routine for mysql

I tracked this down to mysql_install_db, when run directly can't find a Perl interpreter:

[root at regent ~]# mysql_install_db  
-su: /usr/local/bin/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory




>How-To-Repeat:
Fresh install of FreeBSD 9.1, install MySQL Server 5.6 from Ports, try to start it for the first time (ie, no existing data in /var/db/mysql)
>Fix:
a) Install Perl beforehand, or
b) Add USE_PERL5_BUILD=yes to Makefile


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list