Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#25952 closed defect (invalid)

install mysql5-server install fails in snow leopard

Reported by: abiggerdogg Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: mysql5-server

Description (last modified by mf2k (Frank Schima))

I recently upgraded from OS/X 10.5.8 to 10.6.3.

I was attempting to follow the snow leopard ports migration guide. I had executed the following commands.

port -f uninstall installed
port clean --work --archive all

I was able to successfully install a number of other ports, such as gimp and mplayer-devel.

port install mysql5-server failed with the following messages:

sh-3.2# port install mysql5-server
--->  Computing dependencies for mysql5-server
--->  Dependencies to be installed: mysql5
--->  Configuring mysql5
--->  Building mysql5
--->  Staging mysql5 into destroot
--->  Installing mysql5 @5.1.48_1
The MySQL client has been installed.
If you also want a MySQL server, install the mysql5-server port.
--->  Activating mysql5 @5.1.48_1
--->  Cleaning mysql5
--->  Installing mysql5-server @5.1.48_1
******************************************************
* 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-server @5.1.48_1
Error: Target org.macports.activate returned: could not create new link "/opt/local/var/run/mysql5/.turd_mysql5-server": that path already exists
Log for mysql5-server is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mysql5-server/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

I've attached the "main.log" file from the error message above.

Attachments (1)

main.log (10.0 KB) - added by abiggerdogg 14 years ago.

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by abiggerdogg

Attachment: main.log added

comment:1 in reply to:  description Changed 14 years ago by abiggerdogg

I seem to have solved my problem.

I discovered /opt/local/var/run was a link to /opt/local/var/db , so I removed /opt/local/var/run and ran port install mysql5-server.

I then deleted the /opt/local/var/run which port created, and put back the link /opt/local/var/run -> /opt/local/var/db and everything seems to work so far.

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Cc: ryandesign@… added
Description: modified (diff)
Port: mysql5-server added
Resolution: invalid
Status: newclosed

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

/opt/local/var/run is not supposed to be a symlink; you should leave it as a directory so MacPorts can put files there like it wants to.

Note: See TracTickets for help on using tickets.