aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: How to install from source in Fedora if I'm not root  (Read 8416 times)

pharevn

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
How to install from source in Fedora if I'm not root
« on: May 06, 2006, 12:57:00 AM »

Hi,

   I can connect to server of my school and i want to compile amule on this server. How can i do?

   I think that i must change somthing in configure but i don't know how!

   At the server of my school, i have wxGTK2.6.0 and the directory of config file is /usr/local/bin/wx-config.

   Can we run amule on server?

Thanks,
Logged

pharevn

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: How to install from source in Fedora if I'm not root
« Reply #1 on: May 06, 2006, 02:12:30 AM »

I tried to do something :

  load the tar file --> decompress --> aMule.2.1.1

  cd aMule.2.1.1

  ./configure --enable-optimize --disable-debug --enable-wxcas --enable-cas --enable-alc --enable-alcc --enable-amule-daemon --enable-amulecmd --enable-amulecmdgui --enable-webserver --enable-webservergui  --with-wx-config=/usr/local/bin/wx-config

  then
 
  make

  everything seems ok, but i found only two executable are amuled and amulecmd ( where is amule, amuleweb,.. )

  try to run it : ./amuled or ./amulecmd
---> error while loading shared libraries: libwx_base_net-2.6.so.0: cannot open shared object file: No such file or directory
 
   ;( ;( ;( ;( ;( ;( ;( ;( ;( ;( ;( ;( Can you help me pls?
Logged

pharevn

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
continue
« Reply #2 on: May 06, 2006, 02:18:23 AM »

.....
collect2: ld returned 1 exit status
make[3]: *** [amule] Error 1
make[3]: Leaving directory `/home/nguyenh/aMule-2.1.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/nguyenh/aMule-2.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/nguyenh/aMule-2.1.1'
make: *** [all] Error 2

Here is may some problems when i did "make"!
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: How to install from source in Fedora if I'm not root
« Reply #3 on: May 06, 2006, 08:01:52 AM »

pharevn,

You are probably running an old version of the files.

In first place, do:
$ which amuled
$ which amulecmd

To find exactly where those apps are. DELETE THEM.

Then, go back to the directory where you last ran make and do (probably as root):
# make install.

If you want to "make install" without beeing root, you must use the parameter "prefix" when configuring aMule like:
$ ./configure --prefix=/home/myuser/usr --enable-optimize --disable-debug --enable-wxcas --enable-cas --enable-alc --enable-alcc --enable-amule-daemon --enable-amulecmd --enable-amulecmdgui --enable-webserver --enable-webservergui --with-wx-config=/usr/local/bin/wx-config

This way you will install the programs under /home/myuser/usr.

Cheers!
Logged

pharevn

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: How to install from source in Fedora if I'm not root
« Reply #4 on: May 06, 2006, 09:08:27 AM »

Thx, a guys in my school show that we need to have the new version of wxWidget ...

I want to run amuled (amule daemon ) with amulecmd. But i have some problem with ~/amule/amule.conf

How i can creat it? I read in the Wiki help :

Now you need to configure it. To create the ~/.aMule/amule.conf file, which is the preferences file, run aMuled once.
The ~/.aMule directory and the ~/.aMule/amule.conf file will be created in the home directory of the user that ran aMuled.

and when i ran it, nothing happen. It always print the message :

[nguyenh@libra src]$ ./amuled
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
Loading temp files from /home/nguyenh/.aMule/Temp.

All PartFiles Loaded.
ListenSocket: Ok.

External connections disabled in config file
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Empty dir /home/nguyenh/.aMule/Incoming shared

ERROR: aMule daemon cannot be used when external connections are disabled. To enable External Connections, use either a normal aMule or set the key"AcceptExternalConnections" to 1 in the file ~/.aMule/amule.conf

Now, exiting main app...
aMule OnExit: Terminating core.
aMule shutdown completed.



How can i do to run amuled with the amulecmd?

Thank you for you help
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: How to install from source in Fedora if I'm not root
« Reply #5 on: May 06, 2006, 09:47:13 AM »

The file is supposed to exist after the first run of amule(d). Everything you have to do is to edit the file with an editor (e.g. vim ~/.aMule/amule.conf) and search for the the line "AcceptExternalConnections=0" and change the 0 to an 1.
Logged

pharevn

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: How to install from source in Fedora if I'm not root
« Reply #6 on: May 06, 2006, 05:58:48 PM »

I didn't find it after the first, second, ... run :( :( I will try again today.
Logged

pharevn

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: How to install from source in Fedora if I'm not root
« Reply #7 on: May 06, 2006, 07:40:57 PM »

Sorry  :baby: :baby: i found it!
Logged

pharevn

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: How to install from source in Fedora if I'm not root
« Reply #8 on: May 06, 2006, 08:11:33 PM »

Sorry to bother you again :

I ran amuled and everything seems ok :

[nguyenh@libra src]$ ./amuled
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
Loading temp files from /home/nguyenh/.aMule/Temp.

All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Empty dir /home/nguyenh/.aMule/Incoming shared
CECSocket error: Invalid socket (uninitialized)
cd CECSocket error: Invalid socket (uninitialized)

and when i ran amulecmd, it needs a password??? What is the password here?
[nguyenh@libra src]$ ./amulecmd
This is amulecmd 2.1.1
Enter password for mule connection:

Creating client...
CECSocket error: Input/Output error
Connection Failed. Unable to connect to the specified host
« Last Edit: May 06, 2006, 08:11:59 PM by pharevn »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: How to install from source in Fedora if I'm not root
« Reply #9 on: May 09, 2006, 03:52:50 AM »

Read this, it might help you set up the password.

http://www.amule.org/wiki/index.php/AMuleWeb

Cheers!
Logged

pharevn

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Thx phoenix
« Reply #10 on: May 09, 2006, 08:25:58 AM »

I need to set the password only or there are anything else? I think that i must configure file .aMule/amule.conf but i can't find it in the help Wiki!!

My goal is run amuled and then run amulecmd to use the command line.

Help me pls!
Logged

pharevn

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: How to install from source in Fedora if I'm not root
« Reply #11 on: May 09, 2006, 08:47:26 AM »

What did i do :

[nguyenh@libra src]$ echo -n yourpasswordhere | md5sum | cut -d ' ' -f 1
ca3c365274907c6fd527068788e14639

Change the ECPassword in /.aMule/amule.conf with this value

Then i run amuled

[nguyenh@libra src]$ amuled
Initialising aMule
Checking if there is an instance already running...
Loading temp files from /home/nguyenh/.aMule/Temp.

All PartFiles Loaded.
ListenSocket: Ok.

*** TCP socket (ECServer) listening on 0.0.0.0:4712
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Empty dir /home/nguyenh/.aMule/Incoming/ shared

Then run amulecmd :
Enter password for mule connection:

Creating client...
Now, doing connection....
Using host 'localhost.localdomain' port: 4712
Trying to connect (timeout = 10 sec)...
ExternalConn: Access denied because: Authentication failed.

I did copy paste the password here. But It didn't work :(

How can I do to just run amulecmd
 ;( ;( ;( ;( ;(

Thx a lot a lot!
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: How to install from source in Fedora if I'm not root
« Reply #12 on: May 10, 2006, 03:38:52 AM »

The creation of remote.conf is not very intuitive, you have to follow some steps.

If you install aMule, you can type
$man amulecmd

That will give you some instructions:
Quote
AMULECMD(1)                     aMule utilities                    AMULECMD(1)



NAME
       amulecmd - Text-based program to control aMule

SYNOPSIS
       amulecmd  [-h ] [-p ] [-P ] [-f ] [-l ]
       [-q] [-v] [-w] [-c ]

       amulecmd [-f ] --create-config-from=

       amulecmd [--help] [--version]

DESCRIPTION
       amulecmd is a text-based client to control aMule.  Useful help  can  be
       obtained when you launch the program.

       -h, --host=
              host  where  aMule is running (default: localhost). might
              be an IP address or a DNS name

       -p, --port=
              aMule's  port  for  External  Connections,  as  set  in  Prefer-
              ences->Remote Controls (default: 4712)

       -P, --password=
              External Connections password

       -f, --config-file=
              use  the given configuration file. Default configuration file is
              ~/.aMule/remote.conf

       -l, --locale=
              Sets program locale  (language).   See  section  NOTES  for  the
              description of the parameter.

       -q, --quiet
              do  not print any output to stdout. This seems to be a very much
              useless option with amulecmd.

       -v, --verbose
              be verbose - show also debug messages

       -w, --write-config
              write command line options to config file and exit

       -c, --command=
              execute as if it was entered at amulecmd's prompt  and
              exit.

       --create-config-from=
              create  config  file  based  upon  , which must point to a
              valid aMule config file, and then exit

       --help display usage help information and exit

       --version
              output program version information and exit

NOTES
   Paths
       For all options which take a value,  if  the  path  contains  no
       directory  part  (i.e. just a plain filename), then it is considered to
       be under the aMule configuration directory, ~/.aMule.

   Languages
       The  parameter  for  the  -l  option  has  the  following  form:
       lang[_LANG][.encoding][@modifier]  where  lang is the primary language,
       LANG is a sublanguage/territory, encoding is the character set  to  use
       and  modifier  "allows the user to select a specific instance of local-
       ization data within a single category".

       For example, the following strings are valid:
       fr
       fr_FR
       de_DE.iso88591
       de_DE@euro
       de_DE.iso88591@euro

       Though all the above strings are accepted  as  valid  language  defini-
       tions, encoding and modifier are yet unused.

       In  addition  to  the  format above, you can also specify full language
       names in English - so -l german is also valid and is equal to -l de_DE.

       When  no  locale  is defined, either on command-line or in config file,
       system default language will be used.

FILES
       ~/.aMule/remote.conf

EXAMPLE
       Typically amulecmd will be first run as:

       amulecmd -h hostname -p ECport -P ECpassword -w

       or

       amulecmd --create-config-from=/home/username/.aMule/amule.conf

       These will save settings to  $HOME/.aMule/remote.conf,  and  later  you
       only need to type:

       amulecmd

       Of course, you don't have to follow this example.


REPORTING BUGS
       Please report bugs either on our forum (http://forum.amule.org/), or in
       our bugtracker (http://bugs.amule.org/).  Please do not report bugs  in
       e-mail, neither to our mailing list nor directly to any team member.

COPYRIGHT
       aMule  and  all  of its related utilities are distributed under the GNU
       General Public License.

SEE ALSO
       amule(1), amuleweb(1)



aMuleCmd v2.0.0                   March 2005                       AMULECMD(1)
Logged

pharevn

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
... thx... thx ... thx ... :*
« Reply #13 on: May 10, 2006, 06:53:35 AM »

It's all i need, thx Phoenix
Logged

pharevn

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 12
Re: How to install from source in Fedora if I'm not root
« Reply #14 on: May 10, 2006, 07:02:40 AM »

a little more, ...

Can we connect to server from amulecmd

aMulecmd$ Connect
 > Connecting to ED2K...
 > Connecting to Kad...
aMulecmd$
Then
aMulecmd$ Status
 > ED2K: Not connected
 > Kad: Not connected
 > Download:    0 bytes/sec
 > Upload:      0 bytes/sec
 > Clients in queue:    0
 > Total sources:       0
aMulecmd$

So how to connect here?

I didn't find how is the diff between ED2K connec tionand Kad connection. If you have time, please tell me the main diff!
Logged
Pages: [1] 2