Difference between revisions of "HowTo compile on Solaris"
From AMule Project FAQ
Thedude0001 (Talk | contribs) (Initial copy from forum post) |
|||
Line 1: | Line 1: | ||
− | + | '''Compiling [[aMule]]/[[aMuleWeb]] on [http://www.sun.com/software/solaris/10 Solaris 10] x86''' | |
− | + | *Install the [http://www.blastwave.org/pkg-get.php 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 | |
− | + | **automake | |
− | + | **gd | |
− | + | **gettext | |
− | + | **gtk/gtk2 | |
− | + | **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 | |
− | *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''). |
− | + | ||
− | *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. |
− | + | ||
− | *Get the latest | + | *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' | |
− | + | LD_LIBRARY_PATH=/usr/local/lib:/opt/csw/lib:/usr/sfw/lib:/usr/lib | |
− | *Configure | + | *Configure [[aMule]] like this: |
− | + | ./configure --enable-webserver | |
− | *Type | + | *Type ''make'', press <ENTER> and hope for the best. |
− | *If compilation went OK, you can now run | + | *If compilation went OK, you can now run [[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. | ||
− | + | Witten by [[User:Skolnick|Skolnick]] on March 6/2005 | |
− | + | ||
− | + | ||
− | + | ||
− | Thanks goes to all the | + | 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
- Install the pkg-get script from http://www.blastwave.org/pkg-get.php
- 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.
- Get the latest aMule CVS from http://amule.hirnriss.net and uncompress it somewhere.
- 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.