HowTo compile on Solaris

From AMule Project FAQ
Revision as of 12:55, 25 August 2007 by Vollstrecker (Talk | contribs)

Jump to: navigation, search
English | Deutsch

Compiling aMule/aMuleWeb on Solaris 10 x86

  • Use the pkg-get script to install some required libraries, which do not come with Solaris:
    • autoconf
    • automake
    • gd
    • gettext
    • gtk/gtk2
    • libpng

These packages will install to /opt/csw tree

  • Set your path like this:
 PATH=/usr/local/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin
  • Simlink the GNU] utilities in /usr/sfw/bin to their "right" names (gar=ar, gas=as, gld=ld, gmake=make, ggrep=grep, gtar=tar, etc...) somewhere in your path. I sym-linked them to their same directory (/usr/sfw/bin).
  • Now, get the latest wxGTK package from http://www.wxwidgets.org and compile it. Install it to /usr/local. I have not tried compiling it with Unicode support, nor against GTK2, so basically this is untested. But should work.
  • Set these two environment wariables:
 CPPFLAGS='-I /opt/csw/include'
 LD_LIBRARY_PATH=/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib
  • Configure aMule like this:
 ./configure --enable-webserver
  • Type make, press <ENTER> and hope for the best.
  • If compilation went OK, you can now run aMule!
 ./src/amule
  • ENJOY!

This guide was used for compiling aMule and aMuleWeb on Solaris 10 FCS, I have no idea if it will work or not on previous/later Solaris releases, but it should. Also, if you got aMule compiled on other Solaris than 10, please tell me how you did, or if this guide worked for you or any extra things you had to do, etc.

Last, but not least, this guide works only for aMule CVS versions starting March 7th/2005, no previous aMule version will compile on Solaris following this guide.

Witten by Skolnick on March 6/2005

Thanks goes to all the aMule dev team, specially Kry, who helped me a lot, and ken for the CPPFLAGS tip.