Home > docs, freebsd, tips > Update package failed on ports FreeBSD

Update package failed on ports FreeBSD


This is simple log error when we’ve failed to install package on freebsd via ports:

===>;  Checking if databases/mysql50-client already installed
===>;   An older version of databases/mysql50-client is already installed (mysql-client-5.0.77_1)
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of databases/mysql50-client
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/databases/mysql50-client.
*** Error code 1

Stop in /usr/ports/databases/py-MySQLdb.
*** Error code 1

Stop in /usr/ports/databases/py-MySQLdb.
cacti#

where those package was installed.

cacti# pkg_info | grep mysql
mysql-client-5.0.77_1 Multithreaded SQL database (client)
mysql-client-5.0.88 Multithreaded SQL database (client)
mysql-server-5.0.77_1 Multithreaded SQL database (server)
php5-mysql-5.2.11_1 The mysql shared extension for php
cacti#

so, to force package:

setenv FORCE_PKG_REGISTER 1

and then run command again 😉

Reference:
http://freebsd.munk.me.uk/archives/199-Portupgrade-fails-to-upgrade-dependencies.html

Advertisements
Categories: docs, freebsd, tips Tags: , ,
  1. March 8, 2010 at 11:13 pm

    nice post mas 😀

  2. May 18, 2010 at 11:58 pm

    Ooo…
    gitu tohh,,
    pantesan ane kemarin install paket lewat ports sering banged ngalamin kek gitu….

    siip siip

    • May 20, 2010 at 1:56 pm

      tergantung erro na si.. biasana karna dependencies,… ada juga yg config nya uda berubah… (misal install php extention, waktu pilih terus keluar tnpa cancel) <– ini mesti pake make rmconfig .. terus kalo yg diatas itu karena uda ada previous version… g tau tuh bntrok pa g … uda lupa 😀

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s