Grzegorz Czapliński --> Solaris


<--

Freeware for Solaris

* Ncurses

* Mutt

* Cdrtools

* Perl

* Python

* Readline lib

* PostgreSQL

Contact

 
Freeware for Solaris

Precompiled Freeware Software can be downloaded from Sunfreeware.com, but why not to compile it for yourself? All the software was compiled with gcc, libgcc and gnu make downloaded from Sunfreeware.

Ncurses

Get the source (ncurses-5.3.tar.gz) from the net. Unzip and untar it.
# gunzip -c ncurses-5.3.tar.gz | tar xvf -
# ncurses-5.3
# ./configure --prefix=/usr/local
You will see:
bin directory: /usr/local/bin
lib directory: /usr/local/lib
include directory: /usr/local/include/ncurses
man directory: /usr/local/man
terminfo directory: /usr/local/share/terminfo
As far as I remember, the make install does not create those directories prior coping.
# make
# make install
 

Mutt

Get the source (mutt-1.4.1i.tar.gz) from the net. Unzip and untar it.
# gunzip -c mutt-1.4.1i.tar.gz | tar xvf -
# cd mutt-1.4.1 ./configure --prefix=/usr/local --with-curses=/usr/local/include/ncurses --with-mailpath=/home/gc133712/Mail --enable-imap --with-regex --with-exec-shell=/usr/bin/zsh
# make # make install

At Sun we user IMAP so I use --enable-imap with configure.
I had the only one problem with mutt's message index - get the [back space] key to work (move one line back). To overcome the problem I set in .muttrc:
bind pager 0 previous-line
To learn how to configure mutt, read my article.

 

Cdrtools

Get the source (cdrtools-2.00.3.tar.gz) from the net. Unzip and untar it.
# gunzip -c cdrtools-2.00.3.tar.gz | tar xvf -
# cd cdrtools-2.00.3
Here is the tricky part. Read "README.solaris" and "README.sunos".
# PATH=/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
# export PATH
# make CCOM=gcc
# make install CCOM=gcc

This should be fine.

 

Perl

Building a shared Perl library:
Get the source of perl-5.8.2 from the net. Unzip and untar it.
# gunzip -c stable.tar.gz | tar xvf -
# cd perl-5.8.2
# export # LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib:/usr/ccs/lib:/usr/openwin/lib:. # - there should be "."
Make sure to read README.solaris:
If you have the LD_LIBRARY_PATH environment variable set, be sure that it does NOT include /lib or /usr/lib. If you will be building extensions that call third-party shared libraries (e.g. Berkeley DB) then make sure that your LD_LIBRARY_PATH environment variable includes the directory with that library (e.g. /usr/local/lib).
# sh Configure -Duseshrplib
You will be asked few questions. Most of them are OK by default.
# make
# make test
# make install

 

Python

Building a shared Python library:
Get the source (Python-2.3.2.tar.gz) from the net. Unzip and untar it. _Make sure you user GNU tar!_
# gunzip -c Python-2.3.2.tar.gz | tar xvf - # NOT /bin/tar!!!
# cd Python-2.3.2
# ./configure --enable-shared
# make
# make test
# make install

I had a problem with make install so I had to copy files manualy:

root@mufasa # find /usr -name "libpython*" -print
/usr/local/lib/python2.3/config/libpython2.3.so # - for PostgreSQL
/usr/local/lib/python2.3/config/libpython2.3.a
/usr/local/lib/libpython2.3.a
/usr/local/lib/libpython2.3.so
root@mufasa # ldd /usr/local/bin/python
        libpython2.3.so =>       /usr/local/lib/libpython2.3.so
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        librt.so.1 =>    /usr/lib/librt.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libpthread.so.1 =>       /usr/lib/libpthread.so.1
        libstdc++.so.5 =>        /usr/local/lib/libstdc++.so.5
        libm.so.1 =>     /usr/lib/libm.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libmd5.so.1 =>   /usr/lib/libmd5.so.1
        libthread.so.1 =>        /usr/lib/libthread.so.1
        /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
        /usr/platform/SUNW,Ultra-Enterprise/lib/libmd5_psr.so.1
 

Readline lib

Get the source (readline-4.3.tar.gz) from the net. Unzip and untar it.
# gunzip -c readline-4.3.tar.gz | tar xvf -
# cd readline-4.3
# ./configure
# make
# make install
 

PostgreSQL

Get the source (postgresql-7.4.tar.gz) from the net.
# groupadd postgres
# useradd -g postgres -c "PostgreSQL user" -d /usr/local/pgsql -m -s /bin/sh postgres
# cp postgresql-7.4.tar.gz ~postgres
# su - postgres
$ gunzip -c postgresql-7.4.tar.gz | tar xvf -
$ cd postgresql-7.4
$ export PATH=/opt/sun/bin:/usr/local/bin:/usr/local/sbin: /usr/local/openssl/bin:/usr/sbin:/usr/bin:/usr/ccs/bin: /usr/openwin/bin:/usr/dt/bin:/usr/platform/SUNW,Ultra-Enterprise/sbin: /opt/SUNWexplo/bin
$ export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib: /usr/local/openssl/lib:/usr/ccs/lib:/usr/openwin/lib: /usr/local/lib/perl5/5.8.2/sun4-solaris/CORE
$ ./configure --enable-nls=pl --with-perl --with-python --with-pam --enable-th read-safety --with-includes=/usr/local/include: /usr/local/include/openssl --enable-multibyte=LATIN2 --enable-recode --enable-locale
$ make
$ make check # will not work if postgres user not present
$ make install

This should be fine.

 
Contact
E-mail: <G.Czaplinski at prioris.mini.pw.edu.pl>
IRC: irc.FreeNode.net - #DaemonNews
*.irc.pl - #freebsd.pl, !freebsd
PGP Key: <http://prioris.mini.pw.edu.pl/~gregory/pgp.txt>

"The Power to Serve, Right for the Power Users!" - http://www.FreeBSD.org/

 

Powered by FreeBSD Powered by vi Powered by Apache

23rd of November 2003.
Grzegorz Czapliński