aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: can't open file '/usr/local/share/amule/webserver/php-default/red.gif'  (Read 5623 times)

kosaman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20

Hello.
I start my amule:
# amuled

and when I type in my browser (another PC in LAN)

http://192.168.0.1:4711/

I receive:

*** 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/kosa/.aMule/Incoming/ shared
18:01:31: Error: can't open file '/usr/local/share/amule/webserver/php-default/red.gif' (error 2: No such file or directory)


I compilled amule:
# ./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --disable-debug


Any ideas?

Regards,
Tom
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681

Did you only compile it (./configure ; make) or did you also install it (./configure ; make ; make install)?
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235

whatever you did you miss 2 things

-libpng and devel pkg
-libgd and devel pkg

edit: gerd78 you helped him in teh "compilation forum" so why you ask if he compiles it :P

so as solution, install teh 2pkt mentioned above and !!recompile!! amule(web)
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."

kosaman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20

Yes, I did gmake and gmake install.

stefanero, when should I set this options?
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681

Quote
Originally posted by stefanero
gerd78 you helped him in teh "compilation forum" so why you ask if he compiles it :P
I know that he compiled it, but I don't know if he installed it afterwards. He might be running it from the build tree, which works fine for the monolithic app, but not for amuleweb.

EDIT: OK, obsolete, forget it. ;)

@kosaman: You have to install libpng including the development headers and libgd including the development headers. They should be available in the ports collection. Afterwards you recompile amuleweb with the same options - it will pick up the new libraries automatically.

For your information, you already have libpng, only libgd is still missing. The name of the port is "gd" (two letters, without the "lib" prefix).
« Last Edit: June 26, 2006, 07:38:00 PM by Gerd78 »
Logged

kosaman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20

Hmm, look at it:

# pkg_info
...
gd-2.0.33_4,1       A graphics library for fast creation of images
png-1.2.8_3         Library for manipulating PNG images
wxgtk2-2.6.1        The wxWidgets GUI toolkit with GTK+ bindings
wxgtk2-common-2.6.1 The wxWidgets GUI toolkit (common files)
wxgtk2-unicode-2.6.2_2 The wxWidgets GUI toolkit (Unicode)
...

I have libpng and libgd, don't I?
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681

Your ./configure output from the other thread indicates that the gd installation is incomplete.

What I mean are these lines:

configure:
WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
Please check that gdlib-config is in your default path, check out
LD_LIBRARY_PATH or equivalent variable.
Or this might also be that your gdlib-config has other name.
Please try again with --with-gdlib-config=/usr/bin/gdlib-config
(replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
If you use compiled packages check if you have devel pack installed.
To download the latest version check http://www.boutell.com/gd
for sources.

Please check that you have a file named gdlib-config in your PATH (e.g. /usr/bin), a file named gd.h in an include directory (e.g. /usr/include) and a symlink named libgd.so in the library search path (e.g. /usr/lib). Or maybe just reinstall gd.
Logged

kosaman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20

ok,
i've reinstalled gd and I have:

/usr/local/bin/gdlib-config
/usr/local/include/gd.h
/usr/local/lib/libgd.so

but after:
# ./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon --disable-debug --with-gdlib-config=/usr/local/bin/gdlib-config

amule doesn't see it, I receive:
...
configure:
WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
Please check that gdlib-config is in your default path, check out
LD_LIBRARY_PATH or equivalent variable.
Or this might also be that your gdlib-config has other name.
Please try again with --with-gdlib-config=/usr/bin/gdlib-config
(replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
If you use compiled packages check if you have devel pack installed.
To download the latest version check http://www.boutell.com/gd
for sources.
...

What's wrong?
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681

Please attach the file "config.log" which was created in the build directory by the failed ./configure run.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795

Read the message.
Logged

kosaman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20

...
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681

OK, the log shows that it doesn't pick up -I/usr/local/include for some reason.

Please try if it works with this ./configure invocation:
Code: [Select]
export PATH="/usr/local/bin:$PATH"
export CPPFLAGS="-I/usr/local/include"
export LDFLAGS="-L/usr/local/lib"
./configure --enable-blubb --disable-blah
Logged

kosaman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20

ok, but where should I paste this lines?

forgive me this stupid question:)
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681

Into your terminal where you are going to build aMule.

And it must be the same terminal where you run "make" afterwards. --enable-blubb --disable-blah is just an example, insert the configure arguments there that you used before. They are fine.
Logged

kosaman

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20

ok, now it seems to be fine and I am doing gmake.
Thanks:)
Logged