Anurag S. Maskey wrote:
> After installing SUNWgnu-emacs, pkg is now broken. Transcript is below.   
> 
>     ============
>     -bash-3.2$ pfexec pkg install SUNWgnu-emacs
>     DOWNLOAD                                    PKGS       FILES    
>     XFER (MB)
>     Completed                                  10/10   2103/2103
>     126.14/126.14
> 
>     PHASE                                        ACTIONS
>     Removal Phase                                  34/34
>     Update Phase                                 862/862
>     Install Phase                              1825/1825
> 
>     -bash-3.2$ emacs
>     /usr/bin/emacs: no emacs binaries available. Install software
>     package SUNWgnu-emacs-gtk, SUNWgnu-emacs-x, or SUNWgnu-emacs-nox
> 
>     -bash-3.2$ pfexec pkg install SUNWgnu-emacs-gtk
>     Traceback (most recent call last):
>       File "/usr/bin/pkg", line 52, in ?
>         import urllib2
>       File "/usr/lib/python2.4/urllib2.py", line 91, in ?
>         import ftplib
>       File "/usr/lib/python2.4/ftplib.py", line 45, in ?
>         import socket
>       File "/usr/lib/python2.4/socket.py", line 45, in ?
>         import _socket
>     ImportError: ld.so.1: python2.4: fatal: relocation error: file
>     /usr/lib/libnsl.so.1: symbol MD5Init: referenced symbol not found
> 
>     -bash-3.2$ uname -a
>     SunOS eros 5.11 snv_86 i86pc i386 i86pc
>     -bash-3.2$ cat /etc/release
>                            Open Solaris 2008.05 snv_86_rc2 X86
>                Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
>                             Use is subject to license terms.
>                                  Assembled 21 April 2008
>     -bash-3.2$
>     ================
> 
> 
> Yes, I know I should upgrade to the latest and greatest. I will get to 
> it at some point.

You've run into a known bug that was fixed in later versions of pkg(5).

Specifically, emacs wasn't available until build 100 or build 101.  The 
bug you've encountered is that older versions of pkg(5) would install 
packages you asked for along with all their dependencies even if those 
dependencies were dependent upon a newer os build being installed.

You'll either have to go back to an older boot environment if you have 
one, or reinstall more than likely.

-- 
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to