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] 3

Author Topic: amuled kompilieren  (Read 12166 times)

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuled kompilieren
« Reply #15 on: May 17, 2005, 03:15:18 PM »

huh warum cronjob? mach doch ein init script...
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Zappa

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
Re: amuled kompilieren
« Reply #16 on: May 17, 2005, 05:15:11 PM »

ok wie mach ich das? :))
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuled kompilieren
« Reply #17 on: May 17, 2005, 06:13:57 PM »

zum einen search im forum benutzen:

zB
http://forum.amule.org/thread.php?threadid=6113

oder acuh
http://forum.amule.org/thread.php?threadid=4927

musst halt immer ein wenig anpassen....

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Zappa

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
Re: amuled kompilieren
« Reply #18 on: May 17, 2005, 06:19:22 PM »

da muss ich aber für den daemon ne menge abändern   :(
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuled kompilieren
« Reply #19 on: May 17, 2005, 06:27:44 PM »

so ist das leben, vor allem kannst viel rauslassen....
das erste is wohl das bessere von beiden...

such dir einfach raus was du brauhst (amuled und amuleweb) und schreib es halt schnell in ein neues script
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Zappa

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
Re: amuled kompilieren
« Reply #20 on: May 17, 2005, 07:50:28 PM »

ich hab diesen Code in die datei rcamule(befindet sich in /etc/init.d) eingefügt:

Code: [Select]
#!/bin/sh
#
# Startup script for aMuled
#
# chkconfig: 345 80 30
#
# description: Starts the aMule deamon. The service is available \
#              via [URL]http://localhost:4711.[/URL] The deamon runs under \
#              the amule account
#
# processname: amule
USER=amule
RETVAL=0

# Source function library.
if [ -f /etc/init.d/functions ] ; then
  . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
 . /etc/rc.d/init.d/functions
else
 exit 0
fi      

# Get config.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/bin/amuled -o -f /usr/local/bin/amuled  ] || exit 0

  start() {
         gprintf "Starting the aMule daemon: "
         daemon  --user $USER amuled &
         #RETVAL is never returned by aMule?
         RETVAL=0
         echo
         [ $RETVAL -eq 0 ] && touch /var/lock/subsys/amuled || \
          RETVAL=1
         return $RETVAL
  }
  stop() {
         gprintf "Shutting down the aMule daemon: "
         killproc amuled
         RETVAL=$?
         [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/amuled
         echo
         return $RETVAL
         
 }
  status() {
         status amuled
         RETVAL=$?
  }
  restart() {
         $0 stop
         $0 start
 }
  mdkstatus() {
        status amuled
  }

case "$1" in
  start)
        start
        ;;
  stop)
       stop                                        
       ;;
  restart)
       restart
       ;;
  status)
       mdkstatus
       ;;
  *)
      gprintf "Usage: %s {start|stop|restart|status}\n" "$0"
      exit 1
esac
     
exit $?

Wenn ich das Script dann mit chmod 777 ausführbar mache und dann starten will. passiert nichts  ?(
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuled kompilieren
« Reply #21 on: May 17, 2005, 08:07:54 PM »

hast du einen user amule?

dann sind zb die dinge:

 mdkstatus() {
        status amuled
  }

mandrake spezifisch...vielleicht rausnehmen, dann sind dinge wie:

# Source function library.
if [ -f /etc/init.d/functions ] ; then
  . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
 . /etc/rc.d/init.d/functions
else
 exit 0
fi      

acuh net so wild...auch raus..

gibt es bei dir den pfad : /var/lock/subsys/
wenn nicht entweder im scrupt den pfad ändern oder anlegen...

und sonst, hmm rest sollte passen, amule ist im pfad oder?

wenn du als root!! (weil das script wird als root gestartet, aber mti dem user "amule" in diesem fall) kommt da amule acuh? (das is nur für testzecke!! nie amule als root laufen lassen)

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Zappa

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
Re: amuled kompilieren
« Reply #22 on: May 17, 2005, 08:46:46 PM »

Ok habs so abgeändert:
Code: [Select]
#!/bin/sh
#
# Startup script for aMuled
#
# chkconfig: 345 80 30
#
# description: Starts the aMule deamon. The service is available \
#              via [URL]http://localhost:4711.[/URL] The deamon runs under \
#              the amule account
#
# processname: amule
USER=chris
RETVAL=0

# Get config.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/bin/amuled -o -f /usr/local/bin/amuled  ] || exit 0

  start() {
         gprintf "Starting the aMule daemon: "
         daemon  --user $USER amuled &
         #RETVAL is never returned by aMule?
         RETVAL=0
         echo
         [ $RETVAL -eq 0 ] && touch /var/lock/subsys/amuled || \
          RETVAL=1
         return $RETVAL
  }
  stop() {
         gprintf "Shutting down the aMule daemon: "
         killproc amuled
         RETVAL=$?
         [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/amuled
         echo
         return $RETVAL
         
 }
  status() {
         status amuled
         RETVAL=$?
  }
  restart() {
         $0 stop
         $0 start
 }
 

case "$1" in
  start)
        start
        ;;
  stop)
       stop                                        
       ;;
  restart)
       restart
       ;;

  *)
      gprintf "Usage: %s {start|stop|restart|status}\n" "$0"
      exit 1
esac
     
exit $?

Is das so OK? Und was ist mit dem Teil
Code: [Select]
# Get config.
. /etc/sysconfig/network
kann ich den raus lassen?
« Last Edit: May 17, 2005, 08:49:17 PM by Zappa »
Logged

Zappa

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
Re: amuled kompilieren
« Reply #23 on: May 17, 2005, 09:02:47 PM »

Es hat nicht zufällig jemand nen fertiges debian init startscript zur hand oder   :(
« Last Edit: May 17, 2005, 09:03:04 PM by Zappa »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuled kompilieren
« Reply #24 on: May 17, 2005, 09:11:33 PM »

das mit

# Get config.
. /etc/sysconfig/network

kannst auch raus packen...

was sasgt er dann wenn du machst

/etc/init.d/rcamule start

??
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

qwertz2wal

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
auch ein Problem beim Compilieren von amuled
« Reply #25 on: May 17, 2005, 10:33:33 PM »

Hallo Ihr,

ich habe Eure Diskussion verfolgt und versucht parallel selber klarzukommen. Ich will amuled auf einem alten separaten Server im Keller laufen lassen und ihn vom Arbeitsplatz aus steuern. Beide laufen unter SuSE 8.2

Leider stoße ich beim Compilieren von amuled auf cryptische Fehler (ganz am Ende), axBase klappt vorher

===>1.) wxBase-2.6.0
uwe@IDEFIX:~/aMule> cd wxBase-2.6.0
uwe@IDEFIX:~/aMule/wxBase-2.6.0> ./configure --prefix=/usr/
...
config.status: executing wx-config commands
Configured wxWidgets 2.6.0 for `i586-pc-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 base only
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be compiled in debug mode?             no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets be compiled in Unicode mode?           no
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.2      no
                                       wxWidgets 2.4      yes
  Which libraries should wxWidgets use?
                                       jpeg               none
                                       png                none
                                       regex              sys
                                       tiff               none
                                       zlib               sys
                                       odbc               no
                                       expat              sys
                                       libmspack          no
                                       sdl                no
                                       gnomeprint         none

uwe@IDEFIX:~/aMule/wxBase-2.6.0> make
uwe@IDEFIX:~/aMule/wxBase-2.6.0> su
Password:
IDEFIX:/home/uwe/aMule/wxBase-2.6.0 # make install
done

 ------------------------------------------------------

 The installation of wxWidgets is finished.  On certain
 platforms (e.g. Linux) you'll now have to run ldconfig
 if you installed a shared library and also modify the
 LD_LIBRARY_PATH (or equivalent) environment variable.

 wxWidgets comes with no guarantees and doesn't claim
 to be suitable for any purpose.

 Read the wxWidgets Licence on licencing conditions.

 ------------------------------------------------------

IDEFIX:/home/uwe/aMule/wxBase-2.6.0 # ldconfig
IDEFIX:/home/uwe/aMule/wxBase-2.6.0 # exit
exit

===>2. amule:
uwe@IDEFIX:~/aMule/wxBase-2.6.0> cd ../amule-cvs
uwe@IDEFIX:~/aMule/amule-cvs> ./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon
checking build system type... i586-pc-linux-gnu
...

  **** 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?                       no

  **** 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?       no

  **** 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?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.6.0
                                       crypto++              embedded
                                       libpng                1.2.5
                                       zlib                  1.1.4

uwe@IDEFIX:~/aMule/amule-cvs> make
...
WebServer.cpp: In member function `wxString CWebServer::_GetHeader(ThreadData, long int)':
WebServer.cpp:793: error: ambiguous overload for `wxString& = CFormat&' operator
/usr/include/wx-2.6/wx/string.h:843: error: candidates are: wxString& wxString::operator=(const wxStringBase&)
/usr/include/wx-2.6/wx/string.h:915: error:                 wxString& wxString::operator=(const wxString&)
make[3]: *** [amuleweb-WebServer.o] Fehler 1
make[3]: Leaving directory `/home/uwe/aMule/amule-cvs/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/uwe/aMule/amule-cvs/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/uwe/aMule/amule-cvs'
make: *** [all] Fehler 2
uwe@IDEFIX:~/aMule/amule-cvs>


knurps

Kann jemand helfen?
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: amuled kompilieren
« Reply #26 on: May 17, 2005, 10:40:17 PM »

der gcc is zu alt unter 8.2 .. heute kann ich dir nicht mehr helfen, werde aber morgen abend sagen was zu ändern ist

gruss

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3920
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: amuled kompilieren
« Reply #27 on: May 18, 2005, 11:15:04 AM »

also, du musst 2 sachen ändern und zwar einmal in Format.cpp und Format.h

beide files findest du im src verzeichnis.

Format.cpp line 105

Code: [Select]
#if GCC_VERSION > 30203
auf

Code: [Select]
#if GCC_VERSION > 31000
Format.h line 124

Code: [Select]
#if GCC_VERSION > 30203
auf

Code: [Select]
#if GCC_VERSION > 31000
abspeichern und rekompilieren.

und ja.. kannst ja gleich das neue 2.0.1 release nehmen

gruss

Zappa

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 38
Re: amuled kompilieren
« Reply #28 on: May 18, 2005, 12:01:25 PM »

Das sagt er mir
Code: [Select]
/etc/init.d/rcamule: line 19: [: =: unary operator expected
/etc/init.d/rcamule: line 24: gprintf: command not found
/etc/init.d/rcamule: line 25: daemon: command not found
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: amuled kompilieren
« Reply #29 on: May 18, 2005, 12:30:08 PM »

ok zu

19: nimm mal das netzwerkzeug raus...

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

24: ersetze mal gprintf mit echo

25: lösche mal das daemon weg
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."
Pages: 1 [2] 3