aMule Forum
English => Compilation problems => Topic started by: pharevn 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,
-
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?
-
.....
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"!
-
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!
-
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
-
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.
-
I didn't find it after the first, second, ... run :( :( I will try again today.
-
Sorry :baby: :baby: i found it!
-
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
-
Read this, it might help you set up the password.
http://www.amule.org/wiki/index.php/AMuleWeb
Cheers!
-
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!
-
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!
-
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:
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)
-
It's all i need, thx Phoenix
-
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!
-
pharevn,
amuled/amulecmd are now working together, the connection problem is now another issue. Maybe you don't have a good server list or your server list is not up to date. Use google and try to find a nice ed2k server (or better, server list) to connect to. The server list file name is "server.met", google for it.
Kademlia (AKA Kad) is a serverless network, while ED2K is its server-with counterpart. But for Kad to bootstrap, it needs some known nodes.
Read this:
http://www.amule.org/wiki/index.php/FAQ_ed2k
Cheers!
-
And another question if you can ...
In amulecmd, we have now only few command lines. I want to add some others command like Search + filename or Share filename/directory ....
I read the program and i know that i must change a lot of things. The most important class is the file TextClient and then add the CMD... something
But i can't find the protocol to send the request and receive the reponse. I don't understand the diff between the ECOpcode and Copcode?
I try to find by my self but if you can help me ... It will be really nice.
Thx alot!
-
pharevn,
All you need to know is in the code and in the docs directory of the tar ball. The doc EC_Protocol.txt explains the protocol in detail. And the code is pretty well written. I can help you with any specific doubts, but once you start reading the code, it should all be straight forward.
Cheers!