Difference between revisions of "HowTo compile on Solaris"

From AMule Project FAQ
Jump to: navigation, search
(Initial copy from forum post)
 
Line 1: Line 1:
I just wrote this little guide to help you all solaris fans. Hope this helps!
+
'''Compiling [[aMule]]/[[aMuleWeb]] on [http://www.sun.com/software/solaris/10 Solaris 10] x86'''
  
COMPILING AMULE/AMULEWEB ON SOLARIS 10 x86
+
*Install the [http://www.blastwave.org/pkg-get.php pkg-get] script from http://www.blastwave.org/pkg-get.php
  
*Install the pkg-get script from http://www.blastwave.org/pkg-get.php
+
*Use the [http://www.blastwave.org/pkg-get.php pkg-get] script to install some required libraries, which do not come with [http://www.sun.com/software/solaris Solaris]:
 
+
**autoconf
*Use the pkg-get script to install some required libraries, which do not come with solaris:
+
**automake
      autoconf
+
**gd
      automake
+
**gettext
      gd
+
**gtk/gtk2
      gettext
+
**libpng
      gtk/gtk2
+
These packages will install to ''/opt/csw'' tree
      libpng
+
      These packages will install to /opt/csw tree
+
  
 
*Set your path like this:
 
*Set your path like this:
      PATH=/usr/local/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin
+
  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,
+
*Simlink the [http://www.gnu.org 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'').
      gtar=tar, etc...) somewhere in your path. I simlinked them to their same directory (/usr/sfw/bin)
+
  
*Now, get the latest wxGTK package from www.wxwidgets.org and compile it. Install it to /usr/local. I have not
+
*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 [http://www.unicode.org Unicode] support, nor against [http://gtk.org GTK2], so basically this is untested. But should work.
      tried compiling it with unicode support, nor against GTK2, so basically this is untested. But should work.
+
  
*Get the latest amule CVS from http://amule.hirnriss.net and uncompress it somewhere.
+
*Get the latest [[aMule CVS]] from http://amule.hirnriss.net and uncompress it somewhere.
  
 
*Set these two environment wariables:
 
*Set these two environment wariables:
      CPPFLAGS='-I /opt/csw/include'
+
  CPPFLAGS='-I /opt/csw/include'
      LD_LIBRARY_PATH=/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib
+
  LD_LIBRARY_PATH=/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib
  
*Configure amule like this:
+
*Configure [[aMule]] like this:
      ./configure --enable-webserver
+
  ./configure --enable-webserver
  
*Type "make" (without the quotation marks), press <ENTER> and hope for the best.
+
*Type ''make'', press <ENTER> and hope for the best.
  
*If compilation went OK, you can now run amule!
+
*If compilation went OK, you can now run [[aMule]]!
      ./src/amule
+
  ./src/amule
 
*ENJOY!
 
*ENJOY!
  
 +
This guide was used for compiling [[aMule]] and [[aMuleWeb]] on [http://www.sun.com/software/solaris/10 Solaris 10] FCS, I have no idea if it will work or not on previous/later [http://www.sun.com/software/solaris Solaris] releases, but it should. Also, if you got [[aMule]] compiled on other [http://www.sun.com/software/solaris Solaris] than [http://www.sun.com/software/solaris/10 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 [http://www.sun.com/software/solaris Solaris] following this guide.
  
This guide was used for compiling amule and amuleweb on Solaris 10 FCS, I have no idea if it will work or not on
+
Witten by [[User:Skolnick|Skolnick]] on March 6/2005
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.
+
 
+
WRITTEN 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.
+
Thanks goes to all the [[aMule devs|aMule dev team]], specially [[User:Kry|Kry]], who helped me a lot, and [[User:ken|ken]] for the ''CPPFLAGS'' tip.

Revision as of 17:10, 20 March 2005

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.