1

We are a free and open source project, and we are part of Oracle's developer program. We have access to the online developer packages. Solaris 11/64-bit Intel does not include libtool in its GNU gear:

$ find /usr/gnu -name libtool
$ 

I'm trying to install libtool. A simple pkgadd is failing:

$ sudo pkgadd libtool
pkgadd: ERROR: no packages were found in </var/spool/pkg>

When I search for the tool it looks like there are about 23 choices (full result are shown below):

$ pkg search libtool | wc -l
    25

Thinking the PACKAGE field from search might be helpful, I tried:

$ sudo pkgadd libtool
pkgadd: ERROR: no packages were found in </var/spool/pkg>
$ sudo pkgadd libtool@2.4.2-0.175.3.0.0.30.0
pkgadd: ERROR: no packages were found in </var/spool/pkg>
$ sudo pkgadd /developer/build/libtool@2.4.2-0.175.3.0.0.30.0
pkgadd: ERROR: no packages were found in </var/spool/pkg>
$ sudo pkgadd pkg:/developer/build/libtool@2.4.2-0.175.3.0.0.30.0
pkgadd: ERROR: no packages were found in </var/spool/pkg>

The gap I am experiencing is How to Add Software Packages (pkgadd). The doc does not really explain what we should be doing, or I'm not quite getting it. For example, the Oracle docs don't tell me what pkgadd's device-name and pkgid are, and I don't know how to dial-in the results from pkg search.

I think the general problem is, how do I translate a PACKAGE returned from pkg search into a pkg-id used by pkgadd?

For this particular problem, which libtool is the one customarily found on GNU-based system and how do I install it?


$ pkg search libtool
INDEX                       ACTION VALUE                             PACKAGE
basename                    file   usr/apr/1.5/build/amd64/libtool   pkg:/library/apr-15@1.5.1-0.175.3.0.0.30.0
basename                    file   usr/apr/1.5/build/libtool         pkg:/library/apr-15@1.5.1-0.175.3.0.0.30.0
basename                    file   usr/apr/1.5/build/sparcv9/libtool pkg:/library/apr-15@1.5.1-0.175.3.0.0.30.0
basename                    file   usr/apr/1.5/build/libtool         pkg:/library/apr-15@1.5.1-0.175.3.0.0.30.0
basename                    file   usr/bin/amd64/libtool             pkg:/developer/build/libtool@2.4.2-0.175.3.0.0.30.0
basename                    file   usr/bin/libtool                   pkg:/developer/build/libtool@2.4.2-0.175.3.0.0.30.0
basename                    file   usr/bin/sparcv9/libtool           pkg:/developer/build/libtool@2.4.2-0.175.3.0.0.30.0
basename                    file   usr/bin/libtool                   pkg:/developer/build/libtool@2.4.2-0.175.3.0.0.30.0
basename                    file   usr/apr/1.3/build/amd64/libtool   pkg:/library/apr-13@1.3.9-0.175.3.0.0.30.0
basename                    file   usr/apr/1.3/build/libtool         pkg:/library/apr-13@1.3.9-0.175.3.0.0.30.0
basename                    file   usr/apr/1.3/build/sparcv9/libtool pkg:/library/apr-13@1.3.9-0.175.3.0.0.30.0
basename                    file   usr/apr/1.3/build/libtool         pkg:/library/apr-13@1.3.9-0.175.3.0.0.30.0
basename                    file   usr/lib/amd64/R/bin/libtool       pkg:/runtime/r@3.2.0-5.12.0.0.0.90.0
basename                    file   usr/lib/sparcv9/R/bin/libtool     pkg:/runtime/r@3.2.0-5.12.0.0.0.90.0
basename                    file   usr/lib/amd64/R/bin/libtool       pkg:/runtime/r@3.2.3-5.12.0.0.0.95.0
basename                    file   usr/lib/sparcv9/R/bin/libtool     pkg:/runtime/r@3.2.3-5.12.0.0.0.95.0
pkg.fmri                    set    solaris/developer/build/libtool   pkg:/developer/build/libtool@2.4.2-0.175.3.0.0.30.0
pkg.summary                 set    GNU libtool                       pkg:/developer/build/libtool@2.4.2-0.175.3.0.0.30.0
pkg.summary                 set    GNU libtool dlopen wrapper        pkg:/library/libtool/libltdl@2.4.2-0.175.3.0.0.30.0
com.oracle.info.description set    GNU libtool                       pkg:/developer/build/libtool@2.4.2-0.175.3.0.0.30.0
com.oracle.info.description set    the GNU libtool dlopen wrapper    pkg:/library/libtool/libltdl@2.4.2-0.175.3.0.0.30.0
com.oracle.info.name        set    libtool                           pkg:/developer/build/libtool@2.4.2-0.175.3.0.0.30.0
com.oracle.info.name        set    libtool                           pkg:/library/libtool/libltdl@2.4.2-0.175.3.0.0.30.0
basename                    dir    usr/share/libtool                 pkg:/developer/build/libtool@2.4.2-0.175.3.0.0.30.0
2

Solaris 11 does not use pkgadd.

Try:

pkg install libtool

For reference man pkg on your system or Oracle docs for pkg.

  • pkgadd is for the old SVR4 package system, and only used when installing a package built using it for Solaris 10 or older. pkg is used with the IPS package system that's the primary one in Solaris 11 and later. – alanc Nov 11 '16 at 3:38
  • For a general instruction on how to setup a Solaris 11 host with appropriate tools (e.g. libtool, GNU make, etc) for building C/C++ software, have a look at this SO post. – peterh Dec 11 '16 at 11:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy