I've been trying to compile amule for two days, read all sorts of posts but still can't get it.
I'm running ubuntu (Hardy Heron) 8.04.
I dowloaded the latest tarball (aMule-SVN-r9838. extracted it in /home/me/
I also downloaded wxWidgets-2.9.0.tar.gz wxGTK-2.8.10.tar.gz cryptopp560.zip libupnp-1.6.6.tar.bz2 and put it together with the tarball in the /home/me/ folder
I'm trying to use the install batch amule_build_install.sh program fin /home/me/ but keep running on all sorts of problems!
The first problem I had was with that part of the code :
function lookup_distro {
# assign the filename of distribution
# the following is equivalent to execute XXX_FILENAME=$(ls ${TARDIR}/$1)
eval $2=$(ls ${TARDIR}/$1)
when the last line was executed when trying to extract the aMule tarball it was returning an error saying :
/home/me/aMule-SVN-r9838/aMule-SVN-r9838.tar.bz2 : permission denied
I solved it by changing :
lookup_distro 'aMule-*' AMULE_FILENAME AMULE_DISTRO
in :
lookup_distro 'aMule-SVN-*' AMULE_FILENAME AMULE_DISTRO
the error was due to the fact that there is another file which name starts by 'aMule-* in the same directory. But that took me a while to figure that out.
Then I had another error at this line :
function build_amule {
untar_distro ${AMULE_FILENAME}
AMULE_INSTALL_DIR="${PREFIX}/amule"
#cd amule-cvs
./configure \
It returned the error :
cd amule-cvs : folder does not exist
I tried to change the code in :
cd ..
to get the script go back in the /home/me/aMule-SVN-r9838/ where the .configure file is but it doesn't work. I get the following errors :
make: *** No targets specified and no makefile found. Stop.
and lower :
configure: error:
Support for large files in wxWidgets is required by aMule.
To continue you must recompile wxWidgets with support for
large files enabled.
The second error is weired as in the wxwidget compilation options the --enable-largefile option is activated :
function build_wxwidgets {
untar_distro ${WXWIDGETS_FILENAME}
WXWIDGETS_INSTALL_DIR="${PREFIX}/wxWidgets"
cd wxWidgets-?.?.?
./configure \
--enable-mem_tracing \
--enable-debug \
--disable-optimise \
--enable-debug_flag \
--enable-debug_info \
--enable-debug_gdb \
--with-opengl \
--with-gtk \
--enable-gtk2 \
--enable-unicode \
--enable-largefile \
Here is the full log of the compile :
aMule building script, version 2.0.0
Where to install?
[/home/me/usr]
Where are the tarballs?
[/home/me/aMule-SVN-r9838]
Where to untar?
[/home/me/aMule-SVN-r9838/untars]
Building for:
--prefix=/home/me/usr
tarballs are at /home/me/aMule-SVN-r9838
tarballs will be untarred at /home/me/aMule-SVN-r9838/untars
Software packacge versions:
cryptopp : cryptopp560
libupnp : libupnp-1.6.6
wxWidgets : wxWidgets-2.9.0
aMule : aMule-SVN-r9838
Archive: /home/me/aMule-SVN-r9838/cryptopp560.zip
creating: TestData/
[...]
=== configuring in src/tiff (/home/me/aMule-SVN-r9838/untars/wxWidgets-2.9.0/src/tiff)
configure: running /bin/bash ./configure '--prefix=/home/me/usr/wxWidgets' '--enable-mem_tracing' '--enable-debug' '--disable-optimise' '--enable-debug_flag' '--enable-debug_info' '--enable-debug_gdb' '--with-opengl' '--with-gtk' '--enable-gtk2' '--enable-unicode' '--enable-largefile' '--disable-shared' --cache-file=/dev/null --srcdir=.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for C compiler warning flags... -Wall -W
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 32768
checking whether the shell understands some XSI constructs... yes
checking for /usr/bin/ld option to reload object files... -r
checking how to recognise dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for main in -lc... yes
checking for main in -lm... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for off_t... yes
checking for size_t... yes
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for int8... no
checking for int16... no
checking for int32... no
checking for floor... yes
checking for isascii... yes
checking for memmove... yes
checking for memset... yes
checking for mmap... yes
checking for pow... yes
checking for sqrt... yes
checking for strchr... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for getopt... yes
checking for strcasecmp... yes
checking for strtoul... yes
checking for lfind... yes
checking native cpu bit order... msb2lsb
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for inflateEnd in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for jpeg_read_scanlines in -ljpeg... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc
checking whether we are using the Microsoft C compiler... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for OpenGL library... -lGL
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for OpenGL Utility library... -lGLU
checking for GLUT library... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/acorn/Makefile
config.status: creating contrib/addtiffo/Makefile
config.status: creating contrib/dbs/Makefile
config.status: creating contrib/dbs/xtiff/Makefile
config.status: creating contrib/iptcutil/Makefile
config.status: creating contrib/mac-cw/Makefile
config.status: creating contrib/mac-mpw/Makefile
config.status: creating contrib/mfs/Makefile
config.status: creating contrib/ojpeg/Makefile
config.status: creating contrib/pds/Makefile
config.status: creating contrib/ras/Makefile
config.status: creating contrib/stream/Makefile
config.status: creating contrib/tags/Makefile
config.status: creating contrib/win_dib/Makefile
config.status: creating html/Makefile
config.status: creating html/images/Makefile
config.status: creating html/man/Makefile
config.status: creating libtiff/Makefile
config.status: creating man/Makefile
config.status: creating port/Makefile
config.status: creating test/Makefile
config.status: creating tools/Makefile
config.status: creating libtiff/tif_config.h
config.status: creating libtiff/tiffconf.h
config.status: executing depfiles commands
config.status: executing libtool commands
Libtiff is now configured for i686-pc-linux-gnu
Installation directory: /home/me/usr/wxWidgets
Documentation directory: ${prefix}/share/doc/tiff-3.8.2
C compiler: gcc -g -O2 -Wall -W
C++ compiler: g++ -g -O2
Enable runtime linker paths: no
Support Microsoft Document Imaging: yes
Support for internal codecs:
CCITT Group 3 & 4 algorithms: yes
Macintosh PackBits algorithm: yes
LZW algorithm: yes
ThunderScan 4-bit RLE algorithm: yes
NeXT 2-bit RLE algorithm: yes
LogLuv high dynamic range encoding: yes
Support for external codecs:
ZLIB support: yes
Pixar log-format algorithm: yes
JPEG support: yes
Old JPEG support: no
C++ support: yes
OpenGL support: no
Configured wxWidgets 2.9.0 for `i686-pc-linux-gnu'
Which GUI toolkit should wxWidgets use? GTK+ 2 with support for GTK+ printing
Should wxWidgets be compiled into single library? no
Should wxWidgets be compiled in debug mode? yes
Should wxWidgets be linked as a shared library? no
Should wxWidgets support Unicode? yes (using UTF-8)
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.6 no
wxWidgets 2.8 yes
Which libraries should wxWidgets use?
STL no
jpeg sys
png sys
regex builtin
tiff builtin
zlib sys
expat sys
libmspack no
sdl no
##### start build_amule function #####
make: *** No targets specified and no makefile found. Stop.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking if this is a FreeBSD 4 or earlier system... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for gawk... (cached) gawk
checking for egrep... grep -E
checking whether make sets $(MAKE)... (cached) yes
checking for flex... no
checking for lex... no
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... no
checking for byacc... no
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for zlib >= 1.1.4... yes (version 1.2.3.3)
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for gdlib-config... /usr/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.35)
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for libpng-config... /usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.15beta5)
checking for File::Copy... ok
checking whether we need the GUI... yes
checking GeoIP.h usability... yes
checking GeoIP.h presence... yes
checking for GeoIP.h... yes
checking for GeoIP_open in -lGeoIP... yes
checking for the --with-toolkit option... will be automatically detected
checking for the --with-wxshared option... will be automatically detected
checking for the --with-wxdebug option... will be automatically detected
checking for the --with-wxversion option... will be automatically detected
checking for wx-config... /home/me/usr/wxWidgets/bin/wx-config
checking for wxWidgets version >= 2.8.8 (--unicode=yes)... yes (version 2.9.0)
checking for wxWidgets static library... yes
checking if wxWidgets was built in DEBUG mode... yes
checking if wxWidgets was built in STATIC mode... yes
checking which wxWidgets toolkit was selected... gtk2
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libupnp version >= 1.6.6... yes (version 1.6.6)
checking for crypto++ version >= 5.1... yes (version 5.6.0, installed)
checking if we're using the GNU C++ library... yes
checking that wxWidgets has support for large files... no
configure: error:
Support for large files in wxWidgets is required by aMule.
To continue you must recompile wxWidgets with support for
large files enabled.
Finished compilation.
You should run aMule like this:
$LD_LIBRARY_PATH=/home/me/usr/wxWidgets/lib:/home/me/usr/libupnp/lib LANG=en_US.UTF-8 /home/me/usr/amule/bin/amule
Of course you may choose to use a different locale.
Any idea?