mysql5 paths incorrect?

Ryan Schmidt ryandesign at macports.org
Mon Sep 10 19:59:57 PDT 2007


On Sep 10, 2007, at 17:48, Tamal White wrote:

> I'm installing mysql5 +server on a coworker's MacBook, following  
> the same steps I always do.
>
> However, after installing, the mysql5 symlinks in /opt/local/bin  
> appear to point to //opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_datab 
> ases_mysql5/work/destroot/opt/local/lib/mysql5/bin/ instead of t/ 
> opt/local/lib/mysql5/bin/.
>
> For example,
>
> ls -al /opt/local/bin/my*
>
> lrwxr-xr-x 1 root admin 168 Sep 10 15:35 /opt/local/bin/ 
> my_print_defaults5 -> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_datab 
> ases_mysql5/work/destroot/opt/local/lib/mysql5/bin/my_print_defaults
> lrwxr-xr-x 1 root admin 164 Sep 10 15:35 /opt/local/bin/ 
> myisam_ftdump5 -> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_datab 
> ases_mysql5/work/destroot/opt/local/lib/mysql5/bin/myisam_ftdump
> lrwxr-xr-x 1 root admin 160 Sep 10 15:35 /opt/local/bin/myisamchk5 - 
> > /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_datab 
> ases_mysql5/work/destroot/opt/local/lib/mysql5/bin/myisamchk
> lrwxr-xr-x 1 root admin 160 Sep 10 15:35 /opt/local/bin/myisamlog5 - 
> > /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_datab 
> ases_mysql5/work/destroot/opt/local/lib/mysql5/bin/myisamlog
>
> I feel it is related to http://lists.macosforge.org/pipermail/ 
> macports-changes/2007-September/009496.html

Sorry Tamal. You're absolutely right. I obviously didn't test that  
change very well. Thank you for noticing and reporting it.

I've updated the portfile to fix this in r28894, and believe I have  
tested that it works this time.


> I copied the symlinks from my installation of mysql5 to his  
> computer, and things appeared to work, but I was unable to run  
> mysql_install_db5 or mysqld_safe without error.
>
> Any idea how I can easily get this up and running today? Or should  
> I use the .pkg installer on mysql.org for now?

You should be able to "port sync" within about half an hour, and then  
"sudo port install mysql5 +server" to get version 5.0.45_3. If you  
still see problems with that version, please do report them. Thanks.




More information about the macports-users mailing list