Where to extract make & gcc package

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?
Comments
45
what does it pays?
lol, i don't have a fucking clue what you're posting about ;(
IRC bouncers?
Parent
yea, that's the only part i'm able to grasp :( u don't have to explain tho, just wanted to get your attention :>
Parent
lol, i don't have a fucking clue what you're posting about ;(
ur gonna get banned hihi :~>
Parent
not rly :XD
Parent
Heh... why dont u use Yast? If you're using ssh for connection to server try the "zypper" command.
zypper se <package> searches for a package and
zypper in <package> installs it
When I go to /lib and I type zypper I get this:

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
Parent
Eh this sux :s.

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...
Parent
version openSUSE-103-64-minimal :p

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>
Parent
http://ftp5.gwdg.de/pub/opensuse/distribution/10.3/repo/oss/suse/x86_64/
This one then :D. Its for the 64bit processors.

LE: What about $LDPATH?
LLE: Ignore the first LE :D.
Parent
I searched for "libgcc" in that ftp, and I came up with 2 packages. While being in /lib directory, I can't "rpm -i" them:

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
Parent
Where did you download the files? :) I doubt they are in /lib/ ...
Parent
Ok noobmistake :D

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
Parent
Try to execute it as a root (Administrator equivalent on Windows).
To enter the root mode type: su
I hope you know the password :D.
Parent
Ok I logged in with root, executed the command (rpm -i libgcc...) and I didn't get an error (however no output was given either).

I guess now I have to install the make too.
Parent
Now you should try using zypper :).
You didnt install gcc now, just the shared libraries used by zypper to work and install with it gcc and make.
Parent
I did the same with the make package from that ftp, and now the "make" command is working!

Seems like that did the trick!

Thanks for the help dude, I won't forget it!
Parent
Put the gcc package also if you say it's working this way. libgcc =/= gcc
Parent
What gcc package should I take from this ftp? http://ftp5.gwdg.de/pub/opensuse/distribution/10.3/repo/oss/suse/x86_64/

The make command works, but it sais no gcc found :P
Parent
This one i guess:
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
Parent
The ./configure isn't working, but I follow this tutorial:
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...
Parent
I'm not using Suse, but shouldn't there be a package manager, that automatically installs all dependencies? I mean, on Ubuntu you write apt-get install package_name, on gentoo is emerge package_name. Try zypper again, try it while being root, I never used suse, but i think a command like this should solve it:
zypper in gcc42
Parent
I'll try to explain it simple. Any package you install has some other package prerequisites. You can imagine it as a tree with your package as a root and the basic packages to the leaves.
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.
Parent
The zypper installed all dependencies, and it seemed to be installed.

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.
Parent
maybe it's not called exactly "gcc"
try this:
ls /usr/bin/gcc*
Parent
It shows me /usr/bin/gcc-4.2


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
Parent
As a root:
ln -s /usr/bin/gcc-4.2 /usr/bin/gcc
Try it.
Parent
That did the trick!

The make command works like a charm!

Thanks a lot for your and quad's help, you guys are linux pro's :D
Parent
Type:
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.
Parent
Nice tip on the-qR, didn't know that :>

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"?
Parent
yep, that's the way it works
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
Parent
Yes it should. Check the README in the BNC source folder. It says there how to install it. Don't do make without preconfiguration.
Parent
krosan your a big gay. whats your xfire? fool is here to save the day ;)



[i dont know a fucking think about bouncers ;)]
Quote by krosanAnyone has an intelligent answer for me?
Parent
Can't you just use YaST?
No zypper = no yast.
Yast is just a frontend for zypper, nothing more (when talking about pkcg manager of course).
Parent
ah, didn't read the comment.
Parent
Stopt reading at I'm
So you read the title :O
Parent
Yeh, ofc. (al iets gehoord van fatgames?)
Parent
Ik ben deel van het fatgames team :p
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!
Parent
Okey, dankje!
Parent
Back to top