Solaris: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
Line 17: Line 17:
* [http://www.blastwave.org/ Open Source Software for Solaris] (Blastwave). See the [http://www.blastwave.org/howto.html HowTo file]
* [http://www.blastwave.org/ Open Source Software for Solaris] (Blastwave). See the [http://www.blastwave.org/howto.html HowTo file]


=== How to use the packaging system ===
=== How to use the packaging system with for individual packages ===


# Gunzip the file
# Download the package
# Gunzip the package file
# Become root
# Become root
# Type:
# Type:
pkgadd -d <filename>
pkgadd -d <filename>
E.g.
E.g.
pkgadd libpng-1.2.32-sol10-sparc-local
pkgadd libpng-1.2.32-sol10-sparc-local
 
If you want to install it in some other place, type:
pkgadd -d <filename> -a none


There can only be one version of a package. This means that you may have to remove old ones:
There can only be one version of a package. This means that you may have to remove old ones:
Line 30: Line 34:
<pre>
<pre>
The following packages are available:
The following packages are available:
1  SMClibpng    libpng
  1  SMClibpng    libpng
(sparc) 1.2.32
  (sparc) 1.2.32
</pre>
</pre>
* Else, you can find a package that is installed by typing:
* Else, you can find a package that is installed by typing:
Line 46: Line 50:
</pre>
</pre>
* Then remove it
* Then remove it
pkgrm <packagename>
pkgrm <packagename>
E.g.
E.g.
pkgrm  SMClibpng
pkgrm  SMClibpng
 
=== Problems ===
 
Often a package depends libararies that don't work and they then won't work either...
 
You have to make sure that libaries don't have any undefined symbols or missing dependencies (other libraries). Type:
 
ldd -r <library_name>
E.g.
ldd -r /usr/local/libpng.so
 
Or do it recursively (all dependent libraries too):
ldd -rv ....
 
If you find missing symbols or libraries, it simply may be the case that it can't find the libraries in question. Fix that by extending the library path (either in the script that launches software that is using a library or at system level).
Otherwise, install new versions. Some package archives support automatic package updating.


== HELP ==
== HELP ==

Revision as of 16:27, 27 September 2008

Solaris pointers

This page includes a a few pointers for the Solaris operating system.

Open source packages for Solaris

Packages do not always install in the same way. It's probably best to work with only one of these friendly providers ...

How to use the packaging system with for individual packages

  1. Download the package
  2. Gunzip the package file
  3. Become root
  4. Type:
pkgadd -d <filename>

E.g.

pkgadd libpng-1.2.32-sol10-sparc-local

If you want to install it in some other place, type:

pkgadd -d <filename> -a none 

There can only be one version of a package. This means that you may have to remove old ones:

  • Find it first. pkadd will tell you the name.
The following packages are available:
  1  SMClibpng     libpng
  (sparc) 1.2.32
  • Else, you can find a package that is installed by typing:

pkginfo | grep <part_of_the_package_name>

  • Then think hard if you could damage something by removing it. E.g. look at details first:
pkginfo -l SMClibpng
PKGINST:  SMClibpng
NAME:  libpng
CATEGORY:  application
ARCH:  sparc
VERSION:  1.2.12
.....
  • Then remove it
pkgrm <packagename>

E.g.

pkgrm  SMClibpng

Problems

Often a package depends libararies that don't work and they then won't work either...

You have to make sure that libaries don't have any undefined symbols or missing dependencies (other libraries). Type:

ldd -r <library_name>

E.g.

ldd -r /usr/local/libpng.so

Or do it recursively (all dependent libraries too):

ldd -rv ....

If you find missing symbols or libraries, it simply may be the case that it can't find the libraries in question. Fix that by extending the library path (either in the script that launches software that is using a library or at system level).

Otherwise, install new versions. Some package archives support automatic package updating.

HELP

Specialized topics

(such stuff might be moved to a generic Unix page some day ...)