Where to extract make & gcc package
•
9 Feb 2008, 17:51
•
Journals
I'm installing some bncs on an openSUSE server which doesn't have make nor gcc installed (which gcc & which make return nothing). PsyBNC uses uncompiled c files, so I'll have to install the make & gcc package on the server.
Now I have downloaded those 2 packages, but where do I have to extract them, and what to do with them after extracting?
Anyone has an intelligent answer for me?
Now I have downloaded those 2 packages, but where do I have to extract them, and what to do with them after extracting?
Anyone has an intelligent answer for me?
zypper se <package> searches for a package and
zypper in <package> installs it
XXX@openSUSE-103-64-minimal:/lib> zypper
zypper: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
While the libgcc_s.so.1 file is inside the /lib directory :/
Edit: In any directory this error occurs while using zypper
Edit2: man zypper gives the same error... It's strange cause gcc is also what I need, and as it seems, it is in the lib dir, but not shared or something :S
Edit3: the libgcc_s.so.1 file is configured as:
-rwxr-xr-x 1 root root 44956 21. Sep 20:08 libgcc_s.so.1
http://ftp5.gwdg.de/pub/opensuse/distribution/10.3/repo/oss/suse/i586/
For 10.3 and
http://ftp5.gwdg.de/pub/opensuse/distribution/10.2/repo/oss/suse/i586/
for 10.2
Search for the .rpm package libgcc (i think thats how it's called) and try:
rpm -i <package>
LE: I supposed that you have the x86 version of openSUSE, not x86_64 :).
LLE: Type echo $PATH or $PATHS and tell me the output...
so when I do:
XXX@openSUSE-103-64-minimal:/lib> rpm -i libgcc42-4.2.1_20070724-17.i586.rpm
error: open of libgcc42-4.2.1_20070724-17.i586.rpm failed: Datei oder Verzeichnis nicht gefunden
Translated in English that is I guess "data or version not found"
Edit: for the $PATH & $PATHS:
XXX@openSUSE-103-64-minimal:/lib> echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
XXX@openSUSE-103-64-minimal:/lib> echo $PATHS
XXX@openSUSE-103-64-minimal:/lib>
This one then :D. Its for the 64bit processors.
LE: What about $LDPATH?
LLE: Ignore the first LE :D.
XXX@openSUSE-103-64-minimal:/lib> rpm -i libgcc42-4.2.1_20070724-17.x86_64.rpm
error: open of libgcc42-4.2.1_20070724-17.x86_64.rpm failed: Datei oder Verzeichnis nicht gefunden
XXX@openSUSE-103-64-minimal:/lib> rpm -i libgcc42-32bit-4.2.1_20070724-17.x86_64.rpm
error: open of libgcc42-32bit-4.2.1_20070724-17.x86_64.rpm failed: Datei oder Verzeichnis nicht gefunden
About the LDPATH:
XXX@openSUSE-103-64-minimal:/lib> echo $LDPATH
XXX@openSUSE-103-64-minimal:/lib>
So blank output
I downloaded it in the client's folder, navigated to there, and activated the rpm -i command, but I still get an error:
XXX@openSUSE-103-64-minimal:/clients/62> rpm -i libgcc42-4.2.1_20070724-17.x86_64.rpm
error: can't create transaction lock on /var/lib/rpm/__db.000
To enter the root mode type: su
I hope you know the password :D.
I guess now I have to install the make too.
You didnt install gcc now, just the shared libraries used by zypper to work and install with it gcc and make.
Seems like that did the trick!
Thanks for the help dude, I won't forget it!
The make command works, but it sais no gcc found :P
http://ftp5.gwdg.de/pub/opensuse/distribution/10.3/repo/oss/suse/x86_64/gcc42-4.2.1_20070724-17.x86_64.rpm
And when you intend to install the BNC, read the INSTALL file (there should be one).
Most of the time the procedure is:
./configure
make
make install
http://www.lunarshells.com/install_psybnc.php
Btw, when trying to install the file you linked me to, I get dependency problems:
error: Failed dependencies:
glibc-devel is needed by gcc42-4.2.1_20070724-17.x86_64
cpp42 = 4.2.1_20070724-17 is needed by gcc42-4.2.1_20070724-17.x86_64
libgomp >= 4.2.1_20070724-17 is needed by gcc42-4.2.1_20070724-17.x86_64
libmudflap >= 4.2.1_20070724-17 is needed by gcc42-4.2.1_20070724-17.x86_64
When downloading glibc-devel-2.6.1-18.x86_64.rpm I get:
error: Failed dependencies:
linux-kernel-headers is needed by glibc-devel-2.6.1-18.x86_64
Now I can't seem to find linux-kernel-headers...
zypper in gcc42
It's not practical to download every package by hand so package managers were invented. In SUSE 10.3 it is called zypper. First time we tried to install libgcc so we can make zypper work so we could make things work faster and automated. Zypper will resolve any dependecies you packages have and install them in order.
So follow quad's advice and run zypper again... I hope it works this time.
BUT, now when I try this:
openSUSE-103-64-minimal:/clients/62/psybnc # rpm -qR gcc42-4.2.1_20070724-17.x86_64.rpm
package gcc42-4.2.1_20070724-17.x86_64.rpm is not installed
openSUSE-103-64-minimal:/clients/62/psybnc # rpm -i gcc42-4.2.1_20070724-17.x86_64.rpm
package gcc42-4.2.1_20070724-17 is already installed
And the gcc command isn't found when I try "which gcc" :/
I used this command: zypper in gcc42
and it started to download and install all those dependencies etc.
try this:
ls /usr/bin/gcc*
But when I try "make" in my bouncer install folder, it outputs this:
openSUSE-103-64-minimal:/clients/62/psybnc # make
Initializing bouncer compilation
[*] Running Conversion Tool for older psyBNC Data.
make: gcc: Command not found
make: *** [all] Error 127
ln -s /usr/bin/gcc-4.2 /usr/bin/gcc
Try it.
The make command works like a charm!
Thanks a lot for your and quad's help, you guys are linux pro's :D
gcc + TAB a few times
and tell the the output :). It's possible not to be called gcc, but gcc-soemthing_else and we must make a soft link :) (or maybe i can find anotherworkaround)
You didnt use rpm -qR gcc42-4.2.1_20070724-17.x86_64.rpm right. You dont add the .x86-64.rpm extension :). Try directly rpm -qR gcc... it should work.
openSUSE-103-64-minimal:/clients/62/psybnc # rpm -qR gcc42-4.2.1_20070724-17
binutils
glibc-devel
cpp42 = 4.2.1_20070724-17
libgcc >= 4.2.1_20070724-17
libgomp >= 4.2.1_20070724-17
libmudflap >= 4.2.1_20070724-17
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
rpmlib(PayloadIsBzip2) <= 3.0.5-1
Now that "soft link" will connect the "gcc" command to the "gcc-4.2"?
actually, on my system:
ls -l /usr/bin/gcc
lrwxrwxrwx 1 root root 7 2007-10-19 18:09 /usr/bin/gcc -> gcc-4.1
I think you could do:
zypper in gcc
and that would probably make sure you have gcc-4.2 installed, and ofc make the link
[i dont know a fucking think about bouncers ;)]
Yast is just a frontend for zypper, nothing more (when talking about pkcg manager of course).
Onze sponsor noemt fatgames.eu en wou dat we met hun naam speelden.
Op dit moment is mijn team het enige dat nu gesponsord wordt in ET, ma indien er plaats is voor een tweede team zal ik u zeker het laten weten!