Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2013 03:40:54 GMT
From:      Phil Murray <pmurray@nevada.net.nz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176224: MySQL Server 5.6 requires Perl, but does not depend on it
Message-ID:  <201302180340.r1I3esIs043831@red.freebsd.org>
Resent-Message-ID: <201302180350.r1I3o1Cj075813@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302180340.r1I3esIs043831>