Favorites: portupgrade update

Source: Internet
Author: User
Tags intl

Http://www.unix-center.net/bbs/viewthread.php? Tid = 13855 & extra = Page % 3d1

 

It is undeniable that FreeBSD's ports are too powerful to automatically resolve dependencies. The underlying dependency package needs to be dragged from the network, unwrapped, compiled, and linked. Build a powerful software component layer by layer. However, when upgrading the software package, if CD/usr/ports/your_desired_software_component_directory/& make install clean is simple, some errors may occur due to the version of some dependent components installed by the system being too low, for example, when compiling tsclient, you may encounter the following problems:

Wqpbsd # pwd
/Usr/ports/NET/tsclient
Wqpbsd # make install clean
Tsclient-0.150_4 depends on executable: gmake-found
Tsclient-0.150_4 depends on file:/usr/local/bin/automake-1.9-found
Tsclient-0.150_4 depends on file:/usr/local/bin/autoconf-2.62-found
Tsclient-0.150_4 depends on file:/usr/local/bin/libtool-found
Tsclient-0.150_4 depends on file:/usr/local/bin/intltool-extract-found
Tsclient-0.150_4 depends on file:/usr/local/libdata/pkgconfig/gnome-mime-data-2.0.pc-found
==> Tsclient-0.150_4 depends on executable: PKG-config-found
Tsclient-0.150_4 depends on file:/usr/local/libdata/pkgconfig/gnome-doc-utils.pc-found
Tsclient-0.150_4 depends on Shared Library: Intl-found
Tsclient-0.150_4 depends on Shared Library: esd.2-found
Tsclient-0.150_4 depends on Shared Library: atk-1.0.0-found
Tsclient-0.150_4 depends on Shared Library: gconf-2.4-found
Tsclient-0.150_4 depends on Shared Library: glib-2.0.0-found
Tsclient-0.150_4 depends on Shared Library: gnome-desktop-2.11-not found
==> Verifying install for gnome-desktop-2.11 in/usr/ports/X11/gnome-Desktop
==> Installing for gnome-desktop-2.26.1
==> Gnome-desktop-2.26.1 depends on file:/usr/local/libdata/pkgconfig/gnome-python-2.0.pc-found
==> Gnome-desktop-2.26.1 depends on file:/usr/local/bin/python2.5-found
==> Gnome-desktop-2.26.1 depends on file:/usr/local/libdata/pkgconfig/XPM. PC-found
==> Gnome-desktop-2.26.1 depends on file:/usr/local/etc/mtree/BSD. gnome. dist-found
==> Gnome-desktop-2.26.1 depends on file:/usr/local/libdata/pkgconfig/gnome-mime-data-2.0.pc-found
==> Gnome-desktop-2.26.1 depends on executable: PKG-config-found
==> Gnome-desktop-2.26.1 depends on file:/usr/local/lib/Gio/modules/libgiofam. So-found
==> Gnome-desktop-2.26.1 depends on file:/usr/local/libdata/pkgconfig/gnome-doc-utils.pc-found
==> Gnome-desktop-2.26.1 depends on Shared Library: Intl-found
==> Gnome-desktop-2.26.1 depends on Shared Library: esd.2-found
==> Gnome-desktop-2.26.1 depends on Shared Library: atk-1.0.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: gconf-2.4-found
==> Gnome-desktop-2.26.1 depends on Shared Library: glib-2.0.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: gnomevfs-2.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: gtk-x11-2.0.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: art_lgpl_2.5-found
==> Gnome-desktop-2.26.1 depends on Shared Library: bonobo-2.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: bonoboui-2.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: Glade-2.0.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: gnome-2.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: gnomecanvas-2.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: gnomeui-2.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: IDL-2.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: xml2.5-found
==> Gnome-desktop-2.26.1 depends on Shared Library: effect.2-found
==> Gnome-desktop-2.26.1 depends on Shared Library: Orbit-2.0-found
==> Gnome-desktop-2.26.1 depends on Shared Library: pango-1.0.0-found
==> Generating temporary packing list
==> Checking if X11/gnome-desktop already installed
Pkg_info: Package oss-freebsd7-v4.1-1052-i386 has no origin recorded
==> An older version of X11/gnome-desktop is already installed (gnome-desktop-2.22.3)
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 X11/gnome-Desktop
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/X11/gnome-desktop.
* ** Error code 1

Stop in/usr/ports/NET/tsclient.
* ** Error code 1

Stop in/usr/ports/NET/tsclient.
Wqpbsd #
In fact, the first time tsclient is compiled after the system is installed, a bunch of error code 1 errors are encountered. This often leaves beginners confused and has some doubts about the design of ports. The installation of ports in the make install clean method does not automatically delete the software that has been installed in the system. Therefore, it is often costly to install a new software.

Ports is very advanced in design. The error information is also very complete, and a detailed solution has been prompted:
Uninstall the components of earlier versions and reinstall the components to automatically download, compile, and install the deleted components. If there is only one such error, it will take a lot of time.

The best way is to use portupgrade. This tool needs to be manually installed. Under/usr/ports-mgmt/portupgrade, make install clean.
When you need to update a software and its dependent components, usePortupgrade-r should_be_upgraded_software_component_nameThe specified software will be automatically updated. If the new version of the specified software needs to update the dependent components to the updated version, it will also be automatically updated, after downloading, compiling, and connecting, the dependent components of the current version will be deleted, new components will be installed, and other components will be installed until the should_be_upgraded_software_component_name specified at the upper layer is updated to the latest version.

For more information, see the portupgrade manual page.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.