Curl failing on Solaris-10 zone


 
Thread Tools Search this Thread
Operating Systems Solaris Curl failing on Solaris-10 zone
# 1  
Old 04-08-2014
Curl failing on Solaris-10 zone

H,
I have Solaris-10 non-global zone (sparse), which is complaining about curl, I am not sure why. Background is - dev-box-23 is a non global zone, I migrated from other physical box to my current physical box. After that, curl is broke. I am not sure, what soft link I should make on global host or what package I should install on global host (as this is sparse root and /usr will not be writable) to fix it.
Code:
root@dev-box-23:/# curl
ld.so.1: curl: fatal: libssh2.so.1: open failed: No such file or directory
Killed
root@dev-box-23:/# which curl
/usr/local/bin/curl
root@dev-box-23:/# pkginfo -l SMCcurl
   PKGINST:  SMCcurl
      NAME:  curl
  CATEGORY:  application
      ARCH:  sparc
   VERSION:  7.21.7
   BASEDIR:  /usr/local
    VENDOR:  The Curl Group
    PSTAMP:  Steve Christensen
  INSTDATE:  Mar 22 2014 14:14
     EMAIL:  steve@smc.vnet.net
    STATUS:  completely installed
     FILES:      383 installed pathnames
                   9 shared pathnames
                  15 directories
                   5 executables
                8440 blocks used (approx)
 root@dev-box-23:/# fgrep libssh2.so.1 /var/sadm/install/contents
root@dev-box-23:/# ldd /usr/local/bin/curl | grep -i not
        libssh2.so.1 =>  (file not found)
        libssl.so.1.0.0 =>       (file not found)
        libcrypto.so.1.0.0 =>    (file not found)
        libidn.so.11 (LIBIDN_1.0) =>     (version not found)
        libssl.so.1.0.0 =>       (file not found)
        libcrypto.so.1.0.0 =>    (file not found)
        libssh2.so.1 =>  (file not found)
root@dev-box-23:/# echo $LD_LIBRARY_PATH
/usr/openwin/lib

It is same on global host also. Can somebody help on this ?

Last edited by solaris_1977; 04-08-2014 at 02:54 PM..
# 2  
Old 04-08-2014
Seems to be a SSH library package that's missing.

You could try checking the depend file for the curl package to possibly get the name of the missing and/or required package:

Code:
cat /var/sadm/pkg/SMCcurl/install/depend

# 3  
Old 04-08-2014
There is no file inside it
Code:
:/# ls -l /var/sadm/pkg/SMCcurl/install/
total 0

Possibly, for a clean environment, I can remove SMCcurl (which was freeware) and install default Curl package of Oracle Solaris. I tried to search SFWcurl on OS DVD (inside /cdrom/sol_10_910_sparc/Solaris_10/Product), but can not see it there.
# 4  
Old 04-13-2014
That library path looks pretty short to me, but first see if you have any ssl libraries on the system at all:
Code:
grep libssl /var/sadm/install/contents

Remember that some packages create symlinks and to some of these libs durng postinstall and then forget to update the package DB, if you really want to locate the files, use
Code:
find /usr -name "libssh2.so.1"

If you find the files, update your LD_LIBRARY_PATH accordingly, or if you really can't do that, symlink them back to the expected location (yuck)

If you don't find the files, Grab SMCossl for starters and follow your nose from there.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

2. Solaris

No way to install a flar archive of Solaris 10 to Solaris 11.4 zone

I want to migrate a solaris 10 os to solaris 11.4 zone. I did this a)Collect some data like id sysid,disks,ip,etc..on solaris10 OK b)Create this file.cfg with this command on solaris 10 zonep2vchk -c > /migration/sol10.cfg OK c)Create the archive flash on Solaris10 (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

3. Solaris

Solaris 11 Global zone patching having Solaris 10 branded zone

I am planning to do solaris 11 global zone patching having solaris 10 branded zone. I have a doubts on step 8 specially Can someone clear my step 8 doubts or if anything wrong between step 1 to step 9 please correct that also as I have pretty good idea about Step 10 mean patching in solaris 10... (2 Replies)
Discussion started by: amity
2 Replies

4. Solaris

Patching Procedure in Solaris 10 with sun cluster having Solaris zone

Hi Gurus I am not able to find the patching procedure for solaris 10 ( sol10 u11) to latest patchset with sun cluster having failover zones so that same I should follow. Take an instance, there are sol1 and sol2 nodes and having two failover zones like sozone1-rg and sozone2-rg and currently... (1 Reply)
Discussion started by: nick101
1 Replies

5. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

6. Solaris

Solaris 10 local zone on Solaris 11 global zone

Hi, A quick question: Can Solaris 10 local zones be moved to a Solaris 11 global zone and work well? Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

7. Shell Programming and Scripting

Script failing on Solaris 10 and working on 8

I have a script and code is like this .. if ]; then it's compiling about @ . what's the wrong in Solaris 10 with this? Thanks (1 Reply)
Discussion started by: talashil
1 Replies

8. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies

9. UNIX for Dummies Questions & Answers

gcc-3.4.4 build on solaris 10 failing please help

I am building gcc-3.4.4 on sol-10 and getting the following error. my configure is going well but failing in the build stage *** checking for windres... windres checking whether to enable maintainer-specific portions of Makefiles... no updating cache ./config.cache creating... (0 Replies)
Discussion started by: mobydick
0 Replies
Login or Register to Ask a Question