Skip to Content

Compiling and making packages in Solaris 10

It's frustating that whenever you compile a package, it doesn't actually compile like you want. In Solaris 10, these are a few things that I have found useful.

1. Edit your PATH to have these:
/usr/bin:/sbin:/usr/local/bin:/usr/openwin/bin:/usr/dt/bin

2. Edit your LD_LIBRARY_PATH to have these:
/lib:/usr/lib:/usr/local/lib

3. The cc compiler doesn't usually get things right. Use the GNU C compiler (gcc). You can download gcc from http://sunfreeware.com/ and install it with pkgadd.

While you're at it, you might also want to consider getting the latest version of Sun Studio from http://developers.sun.com/sunstudio/downloads/index.jsp. Registration for the Sun Developer Network is free, so just register and get your free full license copy of Sun Studio.

4. There is a version of make at /usr/ccs/bin/make, but I have found it doesn't always work somehow. I prefer to use /usr/sfw/bin/gmake.

Comments

TKqITPrLxpTbJIC

wanna say it's board nice go,

PbTDBentXlZ

yes this portal have 5 stars gc,

RiGmGSKXFGyzS

yes your blog cool ho,

drXVsonEWSUZakrjwcv

i think this board class lg,

koekTTdWZb

i know your board have 5 stars fd,

HVbRNzdefYuhsTGxcoY

i know this site unparalleled fr,

QaPhbwCUReibQAhxG

wonderful that blog wonderful df,

KdbNEbeKHXOPlIkNRg

i say your site have 5 stars se,

lYCBLwCgqMoExBPn

wow that blog have 5 stars fm,

ReaafHcyCntOw

yes that blog have 5 stars jl,

cqwjiUQoUZ

wow this board cool di,

nPHmVZzPNXm

i think your board matchless ls,

jyJRboSzJLC

amazing your's site unparalleled gl,

hOCVCrNTgdEiiuwVn

i say your site wonderful sr,