I have success install OpenBSD 4.3, but when i want install packages using pkg_add, why i can't install it? first i try from local ssh server from my LAN ------------------------------------------- # export PKG_PATH=scp://root@192.168.1.1/OpenBSD4.3/i386/ # pkg_add gdm root@192.168.1.1's password: Can't install glib2-2.14.5: lib not found iconv.4.0 Dependencies for glib2-2.14.5 resolve to: libiconv-1.12, pcre-7.6, gettext-0.17 Full dependency tree is libiconv-1.12,pcre-7.6,gettext-0.17 iconv.4.0: partial match in /usr/local/lib: major=5, minor=0 (bad major) Can't install desktop-file-utils-0.14p1: can't resolve glib2-2.14.5 Can't install libxml-2.6.30: lib not found iconv.4.0 Dependencies for libxml-2.6.30 resolve to: libiconv-1.12 Full dependency tree is libiconv-1.12 iconv.4.0: partial match in /usr/local/lib: major=5, minor=0 (bad major) Can't install docbook-4.4: can't resolve libxml-2.6.30 Can't install libxml-2.6.30: lib not found iconv.4.0 Dependencies for libxml-2.6.30 resolve to: libiconv-1.12 Full dependency tree is libiconv-1.12 iconv.4.0: partial match in /usr/local/lib: major=5, minor=0 (bad major) Can't install libgpg-error-1.5: lib not found iconv.4.0 Dependencies for libgpg-error-1.5 resolve to: libiconv-1.12, gettext-0.17 Full dependency tree is libiconv-1.12,gettext-0.17 iconv.4.0: partial match in /usr/local/lib: major=5, minor=0 (bad major) Can't install libgcrypt-1.2.4: can't resolve libgpg-error-1.5 Can't install libxml-2.6.30: lib not found iconv.4.0 Dependencies for libxml-2.6.30 resolve to: libiconv-1.12 Full dependency tree is libiconv-1.12 iconv.4.0: partial match in /usr/local/lib: major=5, minor=0 (bad major) Can't install libxslt-1.1.22: can't resolve libxml-2.6.30,libgcrypt-1.2.4 Can't install scrollkeeper-0.3.14p5: can't resolve libxml-2.6.30,libxslt-1.1.22,docbook-4.4 Can't install glib2-2.14.5: lib not found iconv.4.0 Dependencies for glib2-2.14.5 resolve to: libiconv-1.12, pcre-7.6, gettext-0.17 Full dependency tree is ...
you have libiconv.so.5.0 installed, but you are trying to install something that wants libiconv.so.4.0. libiconv.so.5.0 is from -current (since May 28, 2008), but you appear to be pointing at a 4.3-release package repository, and you said you installed 4.3. looks like you are experiencing confusion with -release and snapshots. http://www.openbsd.org/faq/faq5.html#Flavors -- jakemsr@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
Definitely a libraries mixup with gettext and libiconv versions. Just curious, what is the output of: ls -ald /var/db/pkg/.* guess there must be some list.
this a result from previous command # ls -ald /var/db/pkg/.* ls: /var/db/pkg/.*: No such file or directory # ls -ald /var/db/pkg/ drwxr-xr-x 53 root wheel 1536 Jul 9 15:17 /var/db/pkg/ # ls -al /var/db/pkg/.* ls: /var/db/pkg/.*: No such file or directory # ls -al /var/db/pkg/ total 212 drwxr-xr-x 53 root wheel 1536 Jul 9 15:17 . drwxr-xr-x 5 root wheel 512 Jul 8 11:07 .. drwxr-xr-x 2 root wheel 512 Jul 7 17:25 aspell-0.50.5p4 drwxr-xr-x 2 root wheel 512 Jul 8 13:52 autoconf-2.52p3 drwxr-xr-x 2 root wheel 512 Jul 4 22:37 autoconf-2.61p3 drwxr-xr-x 2 root wheel 512 Jul 5 19:48 bash-3.2.39 drwxr-xr-x 2 root wheel 512 Jul 9 15:17 bwm-ng-0.6 drwxr-xr-x 2 root wheel 512 Jul 7 17:19 bzip2-1.0.4 drwxr-xr-x 2 root wheel 512 Jul 7 17:18 cairo-1.4.14 drwxr-xr-x 2 root wheel 512 Jul 7 17:19 cdparanoia-3.a9.8p0 drwxr-xr-x 2 root wheel 512 Jul 7 17:18 dbus-1.0.2p2 drwxr-xr-x 2 root wheel 512 Jul 8 11:08 docbook-4.4 drwxr-xr-x 2 root wheel 512 Jul 8 11:08 docbook-dsssl-1.72 drwxr-xr-x 2 root wheel 512 Jul 7 17:18 esound-0.2.34p1v0 drwxr-xr-x 2 root wheel 512 Jul 7 17:18 fam-2.7.0p3 drwxr-xr-x 2 root wheel 512 Jul 8 14:27 gettext-0.17 drwxr-xr-x 2 root wheel 512 Jul 7 17:18 glitz-0.5.6p0 drwxr-xr-x 2 root wheel 512 Jul 7 17:24 gnome-audio-2.0.0p0 drwxr-xr-x 2 root wheel 512 Jul 7 17:20 gnome-backgrounds-2.20.0p0 drwxr-xr-x 2 root wheel 512 Jul 7 17:19 gnome-mime-data-2.18.0p0 drwxr-xr-x 2 root wheel 512 Jul 4 23:00 gperf-3.0.1 drwxr-xr-x 2 root wheel 512 Jul 4 22:36 help2man-1.29p0 drwxr-xr-x 2 root wheel 512 Jul 7 17:18 hicolor-icon-theme-0.10p1 drwxr-xr-x 2 root wheel 512 Jul 8 11:08 iso8879-1986 drwxr-xr-x 2 root wheel 512 Jul 7 17:18 jpeg-6bp3 drwxr-xr-x 2 root wheel 512 Jul 7 17:19 libart-2.3.20 drwxr-xr-x 2 root wheel 512 Jul 7 17:18 ...
Nothing for ls -ald /var/db/pkg/.* is a positive point. What is completely wrong for a 4.3 release, as Jacob said, your libiconv should be *libiconv-1.9.2p5 *as a result your gettext is also wrong, should be *gettext-0.16.1 *You, somehow, incorrectly installed the latest gettext (from current) and correctly try to install glib2 from release. Wich is not compatible. Since you don't have dot entries in the /var/db/pkg you probably can pkg_delete gettext and libiconv and reinstall them from the proper 4.3 release packages.
Yes, you mix -stable and -current. If you build from ports you should use the same branch as the rest of your system (-stable). The latest version of bash in -stable is 3.2.33, not 3.2.39. The later one is in -current. When you build bash you seems to have pulled in (build) the newer libiconv too. The latest version of libiconv in -stable is 1.9.2p5. You may read chapter 5 and 15 of the FAQ, especially http://www.openbsd.org/faq/faq15.html#NoFun Regards, Markus
