LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-25-2005, 10:02 AM   #1
martincho
Member
 
Registered: Sep 2004
Location: Argentina
Distribution: Debian 10.0
Posts: 37

Rep: Reputation: 15
aMule does not start


Hello All,

Just installed aMule package and when try to start it get the message:

amule: error while loading shared libraries: libwx_gtk2_xrc-2.6.so.0: cannot open sharedobject file: No such file or directory

It's Slackware 10.1 and KDE 3.3

Does anybody know how can fix this?

Rgds.
Martin
 
Old 09-25-2005, 10:17 AM   #2
cyto
Member
 
Registered: Aug 2004
Location: London
Distribution: FreeBSD 6.0, Freebsd 5.3, Freebsd 4.10, SuSE 9.2 pro, Slackware 10.1, FreeBSD 5.4 RC3
Posts: 270

Rep: Reputation: 30
Did you install wxGTK?
 
Old 09-28-2005, 08:25 AM   #3
martincho
Member
 
Registered: Sep 2004
Location: Argentina
Distribution: Debian 10.0
Posts: 37

Original Poster
Rep: Reputation: 15
Yes, I installed it, but problem continues...the same error message
 
Old 09-28-2005, 08:27 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Where did you get amule from? If you did from Linuxpackages.net be sure to download the correct wxGTK package it says. You may have installed wxGTK 2.4 instead of 2.6.
 
Old 10-25-2005, 03:20 PM   #5
pella85
LQ Newbie
 
Registered: Oct 2005
Location: Italy
Distribution: Kubuntu 5.10 breezy
Posts: 1

Rep: Reputation: 0
Arrow Same problem...

Hi!
I've the same problem with Slackware 10.2.
I've just installed wxGTK (2.6.2 version) but when I lunch aMule it doesn't work! It gives this error:
"amule: error while loading shared libraries: libwx_gtk2_xrc-2.6.so.0: cannot open shared object file:
No such file or directory"
Someone know why?
Please help me!!
Thanks...
 
Old 10-25-2005, 03:49 PM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
How did you install wxGTK? If you compiled it yourself, did you run ldconfig after installing it?
 
Old 11-13-2005, 07:38 PM   #7
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Rep: Reputation: 30
i have the same problem too
even after executing ldconfig
 
Old 11-14-2005, 10:16 AM   #8
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
gbonvehi has the right of it... When you guys start grabbing Joe Blow's and Suzi Q's packages off the internet you can almost be certain that they are not going to work. Unless it comes from Pat V, build this stuff yourself from source. I built wxPython (which has wxGTK in it) from source and I have no libs named libwx_gtk2_xrc-2.6.so.0....

What I do have is libwx_gtk2ud-2.6.so... I just compiled aMule-2.0.3 and it clearly links against my wxGTK libs.

-lwx_gtk2ud-2.6

aMule starts just fine here... The best thing I can tell you is to:

1. remove amule
2. remove wxGTK

And then use these build scripts to roll your own packages, and then install them, in this order:

wxpython.SlackBuild
Code:
#!/bin/sh
#
# If you have an Nvidia driver installed, the make will probably
# bomb out. Uninstall Nvidia or remove opengl from configure...
#
# The source can be found at:
# http://www.wxpython.org/

CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-wxPython
VERSION=2.6.1.0
# I set my CFLAGS globaly..
ARCH=i486
BUILD=1

rm -rf $PKG
mkdir -p $PKG/install
mkdir -p $PKG/usr/share/{applications,pixmaps}

echo
echo "wxPython-src-$VERSION.tar.gz is now extracting..."
echo
cd $TMP
rm -rf wxPython-src-$VERSION
tar -xzf $CWD/wxPython-src-$VERSION.tar.gz

#################################
# Configure and build wxWidgets #
#################################
cd $TMP/wxPython-src-$VERSION
mkdir bld
cd bld
../configure --prefix=/usr \
        --with-gtk=2 \
	--enable-monolithic \
	--disable-rpath \
	--with-opengl \
	--enable-geometry \
	--enable-optimise \
	--enable-sound 	--with-sdl \
	--enable-display \
	--enable-unicode \
	--enable-debug_flag \
	--disable-debugreport

make 
make -C contrib/src/animate 
make -C contrib/src/gizmos 
make -C contrib/src/stc


##################
# Build wxPython #
##################
cd $TMP/wxPython-src-$VERSION/wxPython
python setup.py \
	WXPORT=gtk2 \
	UNICODE=1 \
	EP_ADD_OPTS=1 \
	WX_CONFIG="$TMP/wxPython-src-$VERSION/bld/wx-config --no_rpath" \
       	build_ext --rpath=/usr/lib \
	build

##############################
# Install wxGTK and contribs #
##############################
cd $TMP/wxPython-src-$VERSION/bld
make prefix=$PKG/usr install
make -C contrib/src/animate prefix=$PKG/usr install
make -C contrib/src/gizmos prefix=$PKG/usr install
make -C contrib/src/stc prefix=$PKG/usr install


##############################
# Install wxPython for wxGTK #
##############################
cd $TMP/wxPython-src-$VERSION/wxPython
python setup.py \
	WXPORT=gtk2 \
	UNICODE=1 \
	EP_ADD_OPTS=1 \
	WX_CONFIG="$PKG/usr/bin/wx-config --prefix=$PKG/usr --no_rpath" \
       	build_ext --rpath=/usr/lib \
	install --root=$PKG

# Menu items
for file in distrib/*.desktop; do
install -m 644 $file	$PKG/usr/share/applications
done

# Icons
install -m 644 wx/py/PyCrust_32.png		$PKG/usr/share/pixmaps/PyCrust.png
install -m 644 wx/tools/XRCed/XRCed_32.png	$PKG/usr/share/pixmaps/XRCed.png

( cd $PKG
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null )

cat << EOF > $PKG/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in.  You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

        |-----handy-ruler----------------------------------------------------|
wxPython: wxPython (Python GUI development)
wxPython:
wxPython: wxPython is a GUI toolkit for the Python programming language. It
wxPython: allows Python programmers to create programs with a robust, highly
wxPython: functional graphical user interface, simply and easily. It is
wxPython: implemented as a Python extension module (native code) that wraps
wxPython: the popular wxWidgets cross platform GUI library, which is written
wxPython: in C++.
wxPython:
wxPython:
wxPython:
EOF

# Fix a broken symlink:
( cd $PKG/usr/bin
  rm -rf wx-config
  ln -sf ../lib/wx/config/gtk2-unicode-debug-2.6 wx-config )

# Build the package:
cd $PKG
makepkg -l y -c n $TMP/wxPython-$VERSION-$ARCH-$BUILD.tgz
gd.SlackBuild
Code:
#!/bin/sh
#
# The source can be found at:
# http://www.boutell.com/gd/

CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-gd
VERSION=2.0.33
# I set my CFLAGS globaly
ARCH=i486
BUILD=1

rm -rf $PKG
mkdir -p $PKG/install

cd $TMP
rm -rf gd-$VERSION
tar xzvf $CWD/gd-$VERSION.tar.gz
cd gd-$VERSION
chown -R root.root .
find . -perm 777 -exec chmod 755 {} \;
find . -perm 664 -exec chmod 644 {} \;
./configure --prefix=/usr
make
make install DESTDIR=$PKG

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null )

cat << EOF > $PKG/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in.  You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

  |-----handy-ruler-----------------------------------------------------------|
gd: gd (graphics draw library)
gd:
gd: What is the GD library? GD is an open source code library for the dynamic
gd: creation of images by programmers. GD is written in C, and "wrappers" are
gd: available for Perl, PHP and other languages. GD creates PNG, JPEG and GIF
gd: images, among other formats. GD is commonly used to generate charts,
gd: graphics, thumbnails, and most anything else, on the fly. While not
gd: restricted to use on the web, the most common applications of GD involve
gd: web site development.
gd:
gd:
EOF

# Build the package:
cd $PKG
makepkg -l y -c n $TMP/gd-$VERSION-$ARCH-$BUILD.tgz
Run ldconfig
amule.SlackBuild
Code:
#!/bin/sh
#
# The source can be found at:
# http://www.amule.org/

CWD=`pwd`
TMP=/tmp
PKG=$TMP/package-amule
VERSION=2.0.3
# I set my CFLAGS globaly
ARCH=i486
BUILD=1

rm -rf $PKG
mkdir -p $PKG/install

cd $TMP
rm -rf aMule-$VERSION
tar xzvf $CWD/aMule-$VERSION.tar.gz
cd aMule-$VERSION
chown -R root.root .
find . -perm 777 -exec chmod 755 {} \;
find . -perm 664 -exec chmod 644 {} \;
# I don't know if your going to want all this:
./configure --prefix=/usr \
   --enable-amulecmd \
   --enable-amulecmdgui \
   --enable-webserver \
   --enable-webservergui \
   --enable-alc \
   --enable-alcc \
   --enable-cas \
   --enable-wxcas
make
make install DESTDIR=$PKG

mv $PKG/usr/share/doc $PKG/usr

gzip -9 $PKG/usr/man/man1/*.1
gzip -9 $PKG/usr/man/{de,es,fr,hu}/man1/*.1
( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null )

cat << EOF > $PKG/install/slack-desc
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in.  You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.

     |-----handy-ruler--------------------------------------------------------|
amule: amule (P2P program)
amule:
amule: aMule stands for all-platform Mule. aMule is an eMule-like client for
amule: the eD2k and Kademlia networks, supporting multiple platforms. aMule is
amule: entirely free, it's sourcecode released under the GPL just like eMule,
amule: and includes no adware or spyware as is often found in proprietary P2P
amule: applications. aMule is built upon the wxWidgets (formely wxWindows)
amule: toolkit, which enables it to support multiple platforms.
amule:
amule:
amule:
EOF

# Build the package:
cd $PKG
makepkg -l y -c n $TMP/amule-$VERSION-$ARCH-$BUILD.tgz
To me, this is what Slackware is all about. Now you have packages that just work, without question.

Last edited by jong357; 11-16-2005 at 01:37 PM.
 
  


Reply



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
Amule raid517 Linux - Software 2 10-09-2005 07:55 AM
Automatic start of aMule underberg Linux - Software 4 03-13-2005 09:12 AM
aMule 2.0 argaar Linux - Software 2 11-08-2004 08:43 AM
aMule anyone? dolphans1 Mandriva 8 09-06-2004 10:56 PM
Script to start/shut down amule not working Adony Linux - Newbie 0 06-18-2004 08:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration