LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-10-2009, 06:45 AM   #1
bocabits
LQ Newbie
 
Registered: Dec 2009
Location: Madrid, Spain
Distribution: Debian
Posts: 8

Rep: Reputation: 1
Installing aMule in a Sarge machine


Good day to all,

I have managed to install FreeLink in a Buffalo LinkStation HD-H160LAN, it is a Debian based firmware for this kind of NAS and it is basically a Sarge modified with kernel 2.4.20.

I have edited /etc/apt/sources.list and added just this line

deb http://archive.debian.org/debian/dists/sarge/ stable main contrib non-free

so I have been able to aptitude update / upgrade but it seems that

#aptitude install amule

doesn't work.

At the moment updating to a 2.6 kernel looks a bit tricky for me so I'd like to stay in 2.4 for a while, which means staying with Sarge and no updating to Lenny.

So I'd like to ask if there are lines missing in my sources.list file, and if I download amule sources and try to compile it in this machine, will I have big troubles with dependencies?

Thank you very much for your attention
 
Old 12-11-2009, 05:49 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Can you be more specific about what "doesn't work"?
 
Old 12-11-2009, 09:20 AM   #3
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
Try apt-cache search amule,see if you get any results.
It could be that amule is not in the repositories for Sarge.
 
Old 12-11-2009, 11:05 AM   #4
bocabits
LQ Newbie
 
Registered: Dec 2009
Location: Madrid, Spain
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 1
Thanks Komakino and The Trooper for your answers.

I am running Sarge in a Buffalo LinkStation:

Code:
root@LINKSTATION:/home# uname -a
Linux LINKSTATION 2.4.20_mipsel_linkstation #88 2005年 2月 25日 金曜日 20:17:00 JST mips GNU/Linux
And trying to install amule in the usual way:

Code:
root@LINKSTATION:/home# aptitude install amule
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Couldn't find any package matching "amule".  However, the following
packages contain "amule" in their description:
  nethack-x11 nethack-el nethack-qt nethack-gnome slashem-gtk slashem-x11
  slashem slashem-sdl nethack-console nethack nethack-lisp
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading Package Lists... Done
Building Dependency Tree
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
It seems amule is not in the sarge repositories so I've downloaded source files for aMule 2.0.3 and I am now in the middle of the ./configure - make - install process (which is running since 6 hours ago), I'll keep you informed with the results.

Thanks again for your help.
 
Old 12-11-2009, 01:04 PM   #5
bocabits
LQ Newbie
 
Registered: Dec 2009
Location: Madrid, Spain
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 1
Ok, so I've finished compiling the aMule sources and, as I expected, it doesn't work.

I got this message when I did ./configure

Code:
  Configure script has finished system check.

  Configured aMule 2.0.3 for 'mipsel-unknown-linux'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/bin/aMule
  Should aMule be compiled with i18n support?                yes
  Should aMule be compiled in debug mode?                    no
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               yes
  Should aMule be compiled with taskbar icon support?        yes
  Should aMule be compiled with old GTK taskbar icon?        no
  Should aMule be compiled with UTF-8 taskbar icon support?  no
  Should aMule be linked against patched gsocket?            no
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      yes
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 yes
  Should aMule GUI Client be built?                          no

  **** aMule WebServer ****
  Should aMule WebServer be built?                           yes
  Should aMule WebServer GUI be built?                       yes

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       yes

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          yes
  Libraries aMule will use to build:
                                       wxWidgets             2.6.1
                                       crypto++              embedded
                                       libpng                1.2.8
                                       zlib                  1.2.2


 WARNING! gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
 amuleweb will be compiled but file download progress bar images will NOT be generated.
 See the above error on gd check for solutions.
make, make install seemed to be ok and when I try to run aMule, I get this:

Code:
paquito@LINKSTATION:~/aMule-2.0.3$ /usr/bin/aMule/bin/amule
/usr/bin/aMule/bin/amule: error while loading shared libraries: libwx_gtk_xrc-2.6.so.0: cannot open shared object file: No such file or directory
After some googling and installing vi aptitude what I thought might be this lib, I've found that I already have it:

Code:
root@LINKSTATION:/usr/local/lib# ls -lsa
total 12204
   4 drwxr-xr-x  3 root staff    4096 Dec 11 09:21 .
   4 drwxr-sr-x  9 root staff    4096 Jul  4  2006 ..
 908 -rw-r--r--  1 root root   923768 Dec 11 09:21 libgd.a
   4 -rwxr-xr-x  1 root root      855 Dec 11 09:21 libgd.la
   0 lrwxrwxrwx  1 root root       14 Dec 11 09:21 libgd.so -> libgd.so.2.0.0
   0 lrwxrwxrwx  1 root root       14 Dec 11 09:21 libgd.so.2 -> libgd.so.2.0.0
 616 -rwxr-xr-x  1 root root   624201 Dec 11 09:21 libgd.so.2.0.0
   0 lrwxrwxrwx  1 root root       19 Dec 11 08:13 libwx_base-2.6.so -> libwx_base-2.6.so.0
   0 lrwxrwxrwx  1 root root       23 Dec 11 08:13 libwx_base-2.6.so.0 -> libwx_base-2.6.so.0.0.0
2208 -rwxr-xr-x  1 root root  2254483 Dec 11 08:13 libwx_base-2.6.so.0.0.0
   0 lrwxrwxrwx  1 root root       23 Dec 11 08:13 libwx_base_net-2.6.so -> libwx_base_net-2.6.so.0
   0 lrwxrwxrwx  1 root root       27 Dec 11 08:13 libwx_base_net-2.6.so.0 -> libwx_base_net-2.6.so.0.0.0
 280 -rwxr-xr-x  1 root root   281864 Dec 11 08:13 libwx_base_net-2.6.so.0.0.0
   0 lrwxrwxrwx  1 root root       23 Dec 11 08:13 libwx_base_xml-2.6.so -> libwx_base_xml-2.6.so.0
   0 lrwxrwxrwx  1 root root       27 Dec 11 08:13 libwx_base_xml-2.6.so.0 -> libwx_base_xml-2.6.so.0.0.0
  72 -rwxr-xr-x  1 root root    67569 Dec 11 08:13 libwx_base_xml-2.6.so.0.0.0
   0 lrwxrwxrwx  1 root root       22 Dec 11 08:13 libwx_gtk_adv-2.6.so -> libwx_gtk_adv-2.6.so.0
   0 lrwxrwxrwx  1 root root       26 Dec 11 08:13 libwx_gtk_adv-2.6.so.0 -> libwx_gtk_adv-2.6.so.0.0.0
 976 -rwxr-xr-x  1 root root   993717 Dec 11 08:13 libwx_gtk_adv-2.6.so.0.0.0
   0 lrwxrwxrwx  1 root root       23 Dec 11 08:13 libwx_gtk_core-2.6.so -> libwx_gtk_core-2.6.so.0
   0 lrwxrwxrwx  1 root root       27 Dec 11 08:13 libwx_gtk_core-2.6.so.0 -> libwx_gtk_core-2.6.so.0.0.0
5280 -rwxr-xr-x  1 root root  5392293 Dec 11 08:13 libwx_gtk_core-2.6.so.0.0.0
   0 lrwxrwxrwx  1 root root       23 Dec 11 08:13 libwx_gtk_html-2.6.so -> libwx_gtk_html-2.6.so.0
   0 lrwxrwxrwx  1 root root       27 Dec 11 08:13 libwx_gtk_html-2.6.so.0 -> libwx_gtk_html-2.6.so.0.0.0
 880 -rwxr-xr-x  1 root root   895426 Dec 11 08:13 libwx_gtk_html-2.6.so.0.0.0
   0 lrwxrwxrwx  1 root root       24 Dec 11 08:13 libwx_gtk_media-2.6.so -> libwx_gtk_media-2.6.so.0
   0 lrwxrwxrwx  1 root root       28 Dec 11 08:13 libwx_gtk_media-2.6.so.0 -> libwx_gtk_media-2.6.so.0.0.0
   8 -rwxr-xr-x  1 root root     7818 Dec 11 08:13 libwx_gtk_media-2.6.so.0.0.0
   0 lrwxrwxrwx  1 root root       21 Dec 11 08:13 libwx_gtk_qa-2.6.so -> libwx_gtk_qa-2.6.so.0
   0 lrwxrwxrwx  1 root root       25 Dec 11 08:13 libwx_gtk_qa-2.6.so.0 -> libwx_gtk_qa-2.6.so.0.0.0
 184 -rwxr-xr-x  1 root root   183879 Dec 11 08:13 libwx_gtk_qa-2.6.so.0.0.0
   0 lrwxrwxrwx  1 root root       22 Dec 11 08:13 libwx_gtk_xrc-2.6.so -> libwx_gtk_xrc-2.6.so.0
   0 lrwxrwxrwx  1 root root       26 Dec 11 08:13 libwx_gtk_xrc-2.6.so.0 -> libwx_gtk_xrc-2.6.so.0.0.0
 776 -rwxr-xr-x  1 root root   787549 Dec 11 08:13 libwx_gtk_xrc-2.6.so.0.0.0
   4 drwxr-xr-x  4 root root     4096 Dec 11 08:13 wx
I've also tried to copy libwx_gtk_xrc-2.6.so.0.0.0 to /lib, but aMule still doesn't run
 
Old 12-15-2009, 04:29 AM   #6
bocabits
LQ Newbie
 
Registered: Dec 2009
Location: Madrid, Spain
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 1
After some big help from the guys of aMule forum this is what you have to do in order to run aMule in a Sarge machine.

Download and unpack wxWidgets and aMule

$ wget http://prdownloads.sourceforge.net/w...-2.8.10.tar.gz
$ wget http://download.berlios.de/amule/aMule-2.2.6.tar.bz2

$ tar xvzf wxGTK-2.8.10.tar.gz
$ tar xvjf aMule-2.2.6.tar.bz2

As we won't be using GUI with aMule, we compile wxWidgets without GUI dependencies

$ ./configure --disable-gui --enable-unicode --without-subdirs --without-expat
$ make

as root

# make install
# ldconfig

and then we compile aMule

$ ./configure --disable-monolithic --with-toolkit=base --enable-amule-daemon --enable-amulecmd --enable-webserver
$ make

as root

# make install

If, at some point, we get this error

checking for crypto++ version >= 5.1... configure: error:
Could not find cryptopp header file "cryptlib.h".
Please check if the path "/usr" is valid.

we just have to install libcrypto++-dev with aptitude

If we get this error when executing amuled

/usr/local/bin$ amuled --ec-config
amuled: error while loading shared libraries: libwx_baseu_net-2.8.so.0: cannot open shared object file: No such file or directory

we need to do

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/usr/local/lib"

or add the line /usr/lib to the file /etc/ld.so.conf and then run ldconfig

In order to run amuled as a service we need to make an script and place it in /etc/init.d/ and set it to run at start up with

update-rc.d amule defaults

This is my amuled script

Code:
#!/bin/bash
NAME=$(basename "$0")
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/bin/amuled
DESC=amuled
USER=paquito #A user who already ran amule once to configure it.

test -x "$DAEMON" || exit 0

case "$1" in
 start)
   echo -n "Starting $DESC: "
     su "$USER" -c "$(printf "%q -f" "$DAEMON" )"
   echo "$NAME."
   ;;
 stop)
   echo -n "Stopping $DESC: "
     killall --quiet "$DAEMON"
   echo "$NAME."
   ;;
 restart|force-reload)
   echo -n "Restarting $DESC: "
     killall --quiet "$DAEMON"
   sleep 1
     su "$USER" -c "$(printf "%q -f" "$DAEMON" )"
   ;;
 *)
   printf "Usage: %q {start|stop|restart|force-reload}\n" "$0" >&2
   exit 1
   ;;
esac

exit 0
When you have installed succesfully amule you have to configure External Connections

amuled --ec-config

You will be asked to write a password, this will also create the amule configuration file in /home/<<my_user>>/.aMule/amule.conf in which you enable amuleweb ([WebServer] Enabled=1), change your incoming and tmp directories, etc

I copied some of my credits and data aMule files from C:\Users\<<my_user>>\AppData\Roaming\aMule to /home/<<my_user>>/.aMule/ (be careful not to overwrite amule.conf)

The password for amuleweb is set with amuleweb --admin-ass=your_password

And I think that's all, again big thanks to the people at amule.org forums (specially wuischke) and to their wiki.

Last edited by bocabits; 12-16-2009 at 04:14 AM. Reason: correction
 
1 members found this post helpful.
Old 12-15-2009, 07:28 AM   #7
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
Good work!.
Thanks for coming back and posting the solution.
 
  


Reply

Tags
amule, debian, sarge, wxwidgets


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing amule 2.2.0 on slackware 11 jena Linux - Software 3 09-07-2008 08:51 AM
amule recently not installing in FC6 using yum fabianrios Linux - Desktop 4 02-12-2007 10:47 PM
installing amule torNAdE Linux - Software 2 10-02-2006 05:05 PM
[Slackware 10.2] installing aMule problems stevesk Linux - Newbie 1 06-25-2006 08:23 AM
installing aMule JeTa Suse/Novell 4 05-07-2005 06:53 AM


All times are GMT -5. The time now is 05:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration