aMule Forum

English => aMule Help => Topic started by: feralertx on October 22, 2004, 08:59:54 PM

Title: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 22, 2004, 08:59:54 PM
Hi,
Im trying to install amule RC7 in a pc running Fedora Core 3 (dont know why i dont stick to mandrake  X( ) and when i try to install the wxGTK rpms this is what i get:

FC3:[/home/vader/installs]# rpm -Uvh wxGTK-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm
error: Failed dependencies:
        libgdk-1.2.so.0 is needed by wxGTK-2.4.2-1
        libgtk-1.2.so.0 is needed by wxGTK-2.4.2-1
        libstdc++.so.5 is needed by wxGTK-2.4.2-1
        libstdc++.so.5(GLIBCPP_3.2) is needed by wxGTK-2.4.2-1

I have search on my (other) Mandrake box (where upgrading, installing and looking for software does make sense) and found out that i need libgtk+1.2, but FC3 cannot find it ont its repositories.
Is it such a weird package that they dont have it 'in stock'?  X(
Where can i get it from ?  :(

Thanks.
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: phoenix on October 22, 2004, 09:06:23 PM
feralertx,

Maybe you can try one in freshrpms repository, i dont know if they have FC3 yet, but if you get their src.rpm and build an rpm, it will surely work.

Seems to me that you dont have gtk+ installed, and wx-2.4.2 needs gtk+, not gtk2.

Cheers!
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 22, 2004, 09:19:03 PM
Hi phoenix, thanks for your quick reply.

I installed gtk+ as you suggeted and the situation has improved, but...

FC3:[/home/vader/installs]# rpm -Uvh wxGTK-2.4.2-1.i386.rpm wxGTK-devel-2.4.2-1.i386.rpm
error: Failed dependencies:
        libstdc++.so.5 is needed by wxGTK-2.4.2-1
        libstdc++.so.5(GLIBCPP_3.2) is needed by wxGTK-2.4.2-1

What do i need now?? Any ideas?

Thanx  :baby:

Update - Install these to no avail:
Dependencies Resolved
                libstdc++.i386 0:3.4.2-6 - user
                libstdc++-devel.i386 0:3.4.2-6 - dep
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 22, 2004, 10:56:01 PM
Ok I have finaly found out i needed 'compat-libstdc++.i386 0:8-3.3.4.2', installed and:
Preparing...                ########################################### [100%]
   1:wxGTK                  ########################################### [ 50%]
   2:wxGTK-devel            ########################################### [100%]

On to next step...
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 22, 2004, 11:41:38 PM
Installed wxbase with:
    * rpm -Uvh wxBase-2.4.2-1.i586.rpm
    * ln -sf /usr/bin/wxgtk-2.4-config /usr/bin/wx-config
    * ln -sf /usr/bin/wxbase-2.4-config /usr/bin/wxbase-config
    * ldconfig

Everything went fine, no errors.

Then installed amule RC7 via the rpm package for FC2 (though im using FC3, but it didnt complaint, is this ok??).

And now when i try to start amule, i get this error:
Code: [Select]
amule: error while loading shared libraries: libcurl.so.2: cannot open shared object file: No such file or directory
Again, I need your help !!!  ;(
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: phoenix on October 23, 2004, 12:03:27 AM
install curl.

$ apt-get install curl

or something similar if you use yum.
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 23, 2004, 12:52:18 AM
Hi phoenix, i d/l curl and curl-devel (from a fedora mirror) and installed them manually since yum was giving an stupid error (im getting so fed up of it, urmi where are you!?):

# rpm -Uvh curl-7.12.1-1.i386.rpm curl-devel-7.12.1-1.i386.rpm
Preparing...                ########################################### [100%]
   1:curl                   ########################################### [ 50%]
   2:curl-devel             ########################################### [100%]

But same error again:
"amule: error while loading shared libraries: libcurl.so.2: cannot open shared object file: No such file or directory"

Are u sure its ok to install the FC2 rpm in FC3??

Thanks for any other suggestion.
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: darklegion on October 23, 2004, 01:50:08 AM
Try running ldconfig as maybe libcurl was not added to the database yet and thus amule thinks its not there.Also it may have been installed properly but maybe the symlinks were not created my advice would be to search you harddrive for the file and see what comes up.You may find a file called "libcurl.so.x.x"
 with "x" being the full version numbers.You'll want to create a symlink to it like this:
Code: [Select]
ln -s libcurl.so.x.x libcurl.so.2
And lastly maybe the libcurl is a different version to the one amule requires,and thus it likely will not work.There is probably a compatability package in this case but I wouldn't count on it.My advice would be to just compile from source,that way you don't have to worry about whether or not it will work on your distro,as you can just grab the deps and set it up so they all work together...but then that is just me :)
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 23, 2004, 02:13:59 AM
Hi darklegion, thank you for taking the time to reply.

I did the ldconfig thing to no avail and have checked the simlinks, everything seems to be all right.
I have search for the string "libcurl.so"  but nothing comes up, so i cannot create asimlink as you suggest.
Quote
And lastly maybe the libcurl is a different version to the one amule requires,and thus it likely will not work.There is probably a compatability package in this case but I wouldn't count on it.My advice would be to just compile from source,that way you don't have to worry about whether or not it will work on your distro,as you can just grab the deps and set it up so they all work together...but then that is just me
Let me tell you what i am doing now. I unistalled the amule RC7 rpm package and im installing it from source (its compiling 'as we speak'). So far seems to be compiling ok, if this fails ill follow your advice and just compile every single thing from source.

Thanks again for replying. I will post how everything goes.
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: darklegion on October 23, 2004, 03:11:05 AM
You did use 'find' and not 'locate' didn't you? Locate will not find files until 'updatedb' is run which usually is run as a cron job I believe by most distros but can of course be run manually also.Since you said that it is compiling fine I assume that the configure script picked it up? Anyway just in case you don't know here is how to run find over the whole drive...which is not neccesary in this case but it eliminates user error:
Code: [Select]
find / -iname libcurl*
You need the wildcard in there for 'find' otherwise it will only find files named exactly "libcurl" rather then "libcurls.so.x.x".

BTW amule is a very long compile in the latest version,took me around half an hour at least each time where as before I could have sworn it was a lot shorter.I guess the newer features are the course of that,so I am not complaining.Although I am having some problems with lowid lately which I will post about if it is amule or wxgtk causing it and not my system.
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 23, 2004, 03:26:47 AM
Quote
Originally posted by darklegion
You did use 'find' and not 'locate' didn't you? Locate will not find files until 'updatedb' is run which usually is run as a cron job I believe by most distros but can of course be run manually also.Since you said that it is compiling fine I assume that the configure script picked it up? Anyway just in case you don't know here is how to run find over the whole drive...which is not neccesary in this case but it eliminates user error:
Code: [Select]
find / -iname libcurl*
You need the wildcard in there for 'find' otherwise it will only find files named exactly "libcurl" rather then "libcurls.so.x.x".

Yes i used search not locate but without the * , so thanks for the tip, with it i find this entries:
# find / -name libcurl.so*
/usr/lib/libcurl.so
/usr/lib/libcurl.so.3.0.0
/usr/lib/libcurl.so.3
So there is a libcurl.so.3 but no libcurl.so.2!  Weird  :(

Anyway amule is still compiling since even before i wrote my lastest post  8o
Quote
BTW amule is a very long compile in the latest version,took me around half an hour at least each time where as before I could have sworn it was a lot shorter.I guess the newer features are the course of that,so I am not complaining.
Truly, it never took so long before. It aint a fast computer (PII400, 300MB RAM) but even so is taking quite a while...

Quote
Although I am having some problems with lowid lately which I will post about if it is amule or wxgtk causing it and not my system.
I wish i could be testing that  :D Probably tomorrow cause right now its bed time!!  :O
Thanks for your replys.
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: darklegion on October 23, 2004, 04:41:00 AM
Yeah my machine is comparitivley fast (1.6ghz duron,512mb ram) but still took me a good half-hour.I'm happy with my most recent compile though.Amule-cvs + wx 2.5.3 + gtk 1 = everything but webserver working...which I hope is just an issue on my end.BTW I think the wx2.5.3 requires a patch called 'wxWidgets-2.5.3-Patch02.tar.gz' .I forgot to run the patch on one of my compiles and i got a slew of errors when compiling amule,however it may have been another issue.
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: stefanero on October 23, 2004, 08:52:32 AM
amuleweb is working fine under 2.5.3 with gtk1 and gtk2, it does not work with unicode!
check out wiki.amule.org and then webserver to find out how to set it up :)

stefanero
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 23, 2004, 10:54:53 AM
This is bizarre, after more than 8 hours compiling it hasnt finished  8o

I think this is not running even tough it hasnt given any errors whatsoever, the last line is the screen is 'INIT: version 2.85 reloading'  ??
I think it hasnt done anything since i left it last night  X(
Bollocks, this never happened to me before, i had failed installs, but this?

Anyways I have some questions, if someone (preferibly a dev) can be so kind to reply:

- Why some (ie mandrake) do use wx 2.5.3 and im using 2.4.x ?
- Do the rpm for FC2 work in FV3 Test 3 ?
- I take that Crypto++ is not neede any longer, am i right?
- What am i doning wrong?

Thanks to all.  :))
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: stefanero on October 23, 2004, 01:01:38 PM
well
first of alll 2.5.3 is the unstable version of wxGTK but its a lot better in cpu and other things tehn 2.4.2 is....

so I would recommend you to use 2.5.3 but there are most often no rpms provided from the linux distributors...so tahts why you probably have 2.4.2.....
if you want 2.5.3 best would be to compile it yourself.

teh rpms from FC2 do NOT work on FC3.

crypt++ is not needed anymore right...its embedded now by default when you compile amule yourself.

what you are doing wrong I have no clue...with older compilers there was a problem with optimize flag....but since you probably have 3.4.2 should be ok....
if you are having 3.4.1 upgrade it please to 3.4.2 because .1 sux.....

so if you want aMule best would be to remove!!! all wxGTK rpms and recompile wxGTK 2.5.3, NO wxBase is needed anymore.
and tehn redownload tar.gz from rc7 and compile it also.
should work without problems since I know some poeple who run it on FC3....

stefanero
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 23, 2004, 01:25:54 PM
Thanks a million stefanero, just one more question, do i still use:

./configure --prefix=/usr --disable-gtk2 --with-gtk && make

for  2.5.3 ?? or do i need anything else (only 2.4 is documented in the wiki).

Thanks!
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 23, 2004, 01:39:12 PM
Ok, i reply to myself, i found this post of DeltaHF:

Quote
yes, wxgtk 2.5.3 is better than other 2.5.x releases.. it fixes i.e broken search in amule when wxgtk was linked against gtk2..

what rpms do u need, suse or other?

and compilation.. still memleaks with gtk2, so better to use it linked against gtk1 ..

use ./configure --prefix=/usr --disable-gtk2 --with-gtk

but remove all previous wxgtk versions first

cheers
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: stefanero on October 23, 2004, 02:16:36 PM
heh ok :)

hope it works ;)

stefanero
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 23, 2004, 02:38:54 PM
Quote
what you are doing wrong I have no clue...with older compilers there was a problem with optimize flag....but since you probably have 3.4.2 should be ok....
if you are having 3.4.1 upgrade it please to 3.4.2 because .1 sux.....

Stefanero, im not gonna leave u alone that easy !!  :D

Can you tell me what do i look for to find out what compiler version im using ?? the compiler is the 'gcc' thing?? Sorry but im totally lost here  :rolleyes:

Thanks.

P.S.: wx 2.5.3 has finish comipiling, no errors whatsoever, im going for amule compitlation now.
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: stefanero on October 23, 2004, 03:53:34 PM
hehe no problem ;)

gcc --version

is to find it out..but I think FC3 comes with 3.4.2 ;)

stefanero
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 23, 2004, 06:33:59 PM
Good news:
Quote
Originally posted by stefanero
gcc --version

is to find it out..but I think FC3 comes with 3.4.2 ;)

# gcc --version
gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6)

You were right, it seems to come with 3.4.2.
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 23, 2004, 07:34:00 PM
Bad news, amule doesnt finish compiling:
Im using './configure --disable-debug --enable-optimise && make' as seen in the wiki.

Quote
CryptoPP.cpp:1708:3: aviso: #warning "You do not have GCC 3.3 or later, or did not specify -msse2 compiler option, so use of SSE2 intrinsics will be disabled."
g++  -DUSE_EMBEDDED_CRYPTO  -O2   -lpthread -o amule  amule-ListenSocket.o amule-EMSocket.o amule-AddFriend.o amule-AddFileThread.o amule-AICHSyncThread.o amule-BarShader.o amule-BaseClient.o amule-ChatSelector.o amule-ChatWnd.o amule-CatDialog.o amule-CFile.o amule-ClientCredits.o amule-ClientDetailDialog.o amule-ClientList.o amule-ClientUDPSocket.o amule-ColorFrameCtrl.o amule-CommentDialog.o amule-CommentDialogLst.o amule-DirectoryTreeCtrl.o amule-DownloadClient.o amule-DownloadListCtrl.o amule-DownloadQueue.o amule-ED2KLink.o amule-ECSocket.o amule-EditServerListDlg.o amule-ExternalConn.o amule-FileDetailDialog.o amule-FileDetailListCtrl.o amule-filemem.o amule-filefn.o amule-Friend.o amule-FriendListCtrl.o amule-MuleGifCtrl.o amule-HTTPDownload.o amule-IPFilter.o amule-KnownFile.o amule-KadDlg.o amule-KnownFileList.o amule-listctrl.o amule-MD5Sum.o amule-MuleListCtrl.o amule-MuleNotebook.o amule-MuleTextCtrl.o amule-muuli_wdr.o amule-OScopeCtrl.o amule-otherfunctions.o amule-packets.o amule-PartFile.o amule-Preferences.o amule-PrefsUnifiedDlg.o amule-Preview.o amule-QueueListCtrl.o amule-SafeFile.o amule-SearchDlg.o amule-SearchList.o amule-SearchListCtrl.o amule-server.o amule-ServerList.o amule-ServerListCtrl.o amule-ServerSocket.o amule-ServerWnd.o amule-SharedFileList.o amule-SharedFilesCtrl.o amule-SharedFilesWnd.o amule-SHA.o amule-SHAHashSet.o amule-sockets.o amule-StatisticsDlg.o amule-TransferWnd.o amule-UDPSocket.o amule-UploadClient.o amule-UploadListCtrl.o amule-UploadQueue.o amule-amule.o amule-amuleDlg.o amule-UInt128.o   amule-eggtrayicon.o amule-SysTray.o amule-gtk2-funcs.o amule-gtkplugxembed.o amule-CryptoPP.o  -pthread   -L/usr/X11R6/lib  -lwx_gtk_xrc-2.5 -lwx_gtk_html-2.5 -lwx_gtk_adv-2.5 -lwx_gtk_core-2.5 -lwx_base_xml-2.5 -lwx_base_net-2.5 -lwx_base-2.5  -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lz -L/usr/lib -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -L/usr/kerberos/lib -lidn -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz  
/usr/bin/ld: no se puede encontrar -lidn
collect2: ld devolvió el estado de salida 1
make[4]: *** [amule] Error 1
make[4]: Leaving directory `/home/vader/installs/aMule-2.0.0rc7/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/vader/installs/aMule-2.0.0rc7/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/vader/installs/aMule-2.0.0rc7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vader/installs/aMule-2.0.0rc7'
make: *** [all] Error 2
What am i missing now ?? :'-(
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: Kry on October 23, 2004, 08:31:14 PM
libidn?
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 23, 2004, 09:03:35 PM
Hi Kry, according to yum:

libidn.i386                              0.5.6-1                installed

Please im getting desperate, what else could it be?
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: stefanero on October 23, 2004, 10:05:05 PM
is there a devel packet to it?

its sux to be stuck at the last second of compiling... ;)


stefanero
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: phoenix on October 24, 2004, 12:22:41 AM
No devel package here, FC2.
Very strange, try "$ ldconfig" as root and then try to relink.
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: feralertx on October 24, 2004, 02:24:37 AM
Hi guys,
Yeah, there was a dev package!!  :D You're great stefanero, thanks a lot for all your help and everyone else for taking the time to give your ideas!!  :baby:

Quote
Transaction Listing:
  Install: libidn-debuginfo.i386 0:0.5.6-1
  Install: libidn-devel.i386 0:0.5.6-1
Is this ok [y/N]: y
Downloading Packages:
libidn-devel-0.5.6-1.i386 100% |=========================| 219 kB    00:32
libidn-debuginfo-0.5.6-1. 100% |=========================| 169 kB    00:03
I have it working at last !  :P   :baby: THANK YOU PEOPLE

BTW: It looks great, and works veeeeeery fast, its been worth all the effort, thanks devs, very good work!.
Title: Re: FC2 rpm is ok for FC3 ?? getting libcurl.so.2 error
Post by: stefanero on October 24, 2004, 09:45:06 AM
heh

no problem... ;)
and have fun with this great piece of software :)

stefanero