Wednesday, July 23, 2008

How to install GD library in Solaris

Step 1: Download GD Graphics library in the Solaris website based on Processor/OS

http://sunfreeware.skynet.be/
Result: you get gd-2.0.35-solXXX-YYY-local.gz
XXX may be 7, 8, 9, 10. YYY may be x86, SPARAC

Step2: Check the /usr/sfw/lib directory

You should have the following *.so file
libgcc_s.so
libgd.so

If any of the above files are missing, you can download it from http://sunfreeware.skynet.be/ based on Processor/OS and run two commands :

* gunzip libgcc-2.0.35-solXXX-YYY-local.gz
Result: you get libgcc-2.0.35-solXXX-YYY-local
* pkgadd libgcc-2.0.35-solXXX-YYY-local

Step3: Run the following two commands after successful completion of step 2

* gunzip gd-2.0.35-solXXX-YYY-local.gz (Result: you get gd-2.0.35-solXXX-YYY-local)
* pkgadd –d gd2.0.35-solXXX-YYY-local

No comments: