Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#12954 closed defect (fixed)

mysql5-devel: Could not find /opt/local/lib/mysql5-devel/bin/my_print_defaults

Reported by: ebgssth@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 1.5.0
Keywords: mysql Cc: jyrkiwahlstedt
Port:

Description

mysql_install_db5 failed with the following errors.

$ sudo port install mysql5-devel +server
--->  Installing mysql5-devel 5.1.22-rc_0+darwin_8+server
******************************************************
* In order to setup the database, you might want to run
* sudo -u mysql mysql_install_db5
* if this is a new install
******************************************************
--->  Activating mysql5-devel 5.1.22-rc_0+darwin_8+server
--->  Cleaning mysql5-devel

$ sudo -u mysql mysql_install_db5
sudo -u mysql mysql_install_db5
FATAL ERROR: Could not find /opt/local/lib/mysql5-devel/bin/my_print_defaults

If you are using a binary release, you must run this script from
within the directory the archive extracted into.  If you compiled
MySQL yourself you must run 'make install' first or use
use --source-install --install-dir=xxx from the top source directory

$ ls /opt/local/lib/mysql5-devel/bin/my_print_default*
/opt/local/lib/mysql5-devel/bin/my_print_defaults5

Change History (9)

comment:1 Changed 17 years ago by ebgssth@…

Related bug tickets on mysql.com

http://bugs.mysql.com/bug.php?id=11913 http://bugs.mysql.com/bug.php?id=25226

Summary

--program-suffix, a configure option, is broken. IMHO, for the time being, we should avoid using this at least untill MySQL tean fix this problems.

reinplace might help but according to ticket above, that "require an extensive modification to multiple scripts" so will be a hard work.

I wonder how other packaging system handle this problem. Any clues anyone?

comment:2 Changed 17 years ago by ebgssth@…

patch to get mysql_install_db working. http://lists.mysql.com/internals/27940

comment:3 Changed 17 years ago by ebgssth@…

Suggested patch

--- Portfile.mysql5-devel.old   2007-10-23 07:08:44.000000000 +0900
+++ Portfile.mysql5-devel.new   2007-10-23 07:29:00.000000000 +0900
@@ -45,7 +45,6 @@
     --includedir=${prefix}/include/${name} \
     --datadir=${prefix}/share/${name} \
     --sysconfdir=${prefix}/etc/${name} \
-    --program-suffix=5 \
     --with-zlib-dir=${prefix} \
     --with-ssl=${prefix} \
     --with-extra-charsets=complex \
@@ -125,7 +124,7 @@
     if { [variant_isset server] } {
        ui_msg "******************************************************"
        ui_msg "* In order to setup the database, you might want to run"
-       ui_msg "* sudo -u ${mysqluser} mysql_install_db5"
+       ui_msg "* sudo -u ${mysqluser} mysql_install_db"
        ui_msg "* if this is a new install" 
        ui_msg "******************************************************"
     }

comment:4 Changed 17 years ago by jyrkiwahlstedt

Owner: changed from macports-dev@… to jwa@…
Status: newassigned

copying over stuff from mysql5 stable to drop configure option --program-suffix (declared broken), committing revised Portfile as revision 30318, ticket will be closed after confirmed action

comment:5 Changed 17 years ago by ebgssth@…

I verified that mysql5-devel works fine now. But I think I would be better to fix program name in ui_msg, too.

post-install {
    if { [variant_isset server] } {
        ui_msg "******************************************************"
        ui_msg "* In order to setup the database, you might want to run"
-       ui_msg "* sudo -u ${mysqluser} mysql_install_db5"
+       ui_msg "* sudo -u ${mysqluser} mysql_install_db"
        ui_msg "* if this is a new install" 
        ui_msg "******************************************************"
    }
}

comment:6 Changed 17 years ago by ebgssth@…

I misunderstood. Sorry for confusing. ui_msg is correct. Please close this ticket.

comment:7 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Milestone: Port Bugs
Resolution: fixed
Status: assignedclosed
Summary: mysql5-devel: : Could not find /opt/local/lib/mysql5-devel/bin/my_print_defaultsmysql5-devel: Could not find /opt/local/lib/mysql5-devel/bin/my_print_defaults

Closing, as requested by reporter.

comment:8 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jwa@… added; openmaintainer@… removed

comment:9 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.