开发者

How do I use MacPorts to downgrade a dynamic library?

My py-mysql is farking because I've upgraded MySQL which replaced libmysqlclient_r.15.dylib with libmysqlclient_r.16.dylib. How do I find and get back the older version?

EDIT: I found that to intall an older version of MySQL, I need开发者_C百科 to do @, but I'm still looking for the way to find the older versions.


Didn't figure out how to find older versions (please answer still, I'll accept). But the way I fixed it was to activate the older version:

dreBook:~ fedorov$ port installed mysql5
The following ports are currently installed:
  mysql5 @5.0.81_0
  mysql5 @5.1.40_0 (active)
dreBook:~ fedorov$ sudo port activate mysql5 @5.0.81_0
--->  Deactivating mysql5 @5.1.40_0
--->  Activating mysql5 @5.0.81_0
dreBook:~ fedorov$ sudo apachectl restart

Yay!


Installing older versions is a pain. You have to grab the files from the MacPorts SVN Repository, which is tricky, since you can't directly search for a particular version. Once you've downloaded the appropriate portfile, it's easy as installing any other port. Read the official how to install an older version of a port document for the details. There's also an older procedure that has you add the downloaded port to a local port repository.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜