LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem installing glibc and gcc on slack (https://www.linuxquestions.org/questions/slackware-14/problem-installing-glibc-and-gcc-on-slack-551717/)

nidalos 05-06-2007 10:37 AM

Problem installing glibc and gcc on slack
 
Hello!
I have very big problem installing gcc and glibc... I know that there are many tutorials, but I just can't install it :( Please! Can anyone give me step-by-step tutorial? I beg you! I can't install anything without these packages :( I have BackTrack2 (on slack)...
Thanks in advance.
nidalos.

erklaerbaer 05-06-2007 11:37 AM

this gives me a headache.
backtrack is basically a different distro. if they have packages, maybe you can install them with 'installpkg' .
you are probably better off, asking in their forum.

nidalos 05-06-2007 11:50 AM

Code:

# installpkg gcc-4.1.2.tar.gz
Cannot install gcc-4.1.2.tar.gz: package does not end in .tgz

So there's no difference :/ I still can't install... but I'll try and ask on remote-exploit forums...

H_TeXMeX_H 05-06-2007 12:00 PM

I dunno, but upgrading glibc is not as easy as installing one package.

nidalos 05-06-2007 12:12 PM

while I want to install sthing it says I need glibc and/or gcc library... So I don't have them... And I don'y need to upgrade - I need to install :(

Eternal_Newbie 05-06-2007 01:45 PM

what version of glibc do you need, 2.3.x or 2.4.x? Backtrack is Slax-based apparently, so I assume it can use Slax modules. The most recent development tools module for Slax appears to be this one, with glibc 2.3.6 and gcc 3.4.6.
If you need gcc 4.x and glibc 2.4.x I would recommend asking on the Backtrack or Slax forums. As H_TexMex_H says, upgrading glibc is not an easy task.

PS: Are you running Backtrack as a live CD or do you have it installed to your harddrive?

lali.p 05-06-2007 01:55 PM

Slackware packages have the tgz extension.However not everything that ends with tgz is a Slackware package.
It can be source code as well.
So if you have downloaded a tgz file from slackware mirror site or a site like linuxpackages.net then only there are chances that its a slackware package and not a source file

In order to install from source you need to compile which in your case you cannot because you do not hace gcc.


So coming to your problem ,you are unable to install because :
The package you are trying to install in not in tgz format(may be its a source file)
Anyway change its extension to .tgz and they issue:
Quote:

installpkg xyz.tgz
where xyz is the package you mentioned. If this again gives the error that it's not a slackware package then here are the links from which you can downlod gcc and glib packages:
1)gcc->http://slackware.cs.utah.edu/pub/sla...4.6-i486-1.tgz

2)glibc->(i)http://slackware.cs.utah.edu/pub/sla...3.6-i486-6.tgz
(ii)http://slackware.cs.utah.edu/pub/sla...6-noarch-6.tgz

You can install these packages using installpkg command.

nidalos 05-06-2007 03:37 PM

I have BT 2 Final release installed on my hd. I've tried
Code:

# installpkg gcc-3.4.6-i486-1.tgz
Installing package gcc-3.4.6-i486-1...
PACKAGE DESCRIPTION:
gcc: gcc (Base GCC package with C support)
gcc:
gcc: GCC is the GNU Compiler Collection.
gcc:
gcc: This package contains those parts of the compiler collection needed to
gcc: compile C code.  Other packages add C++, Fortran, Objective-C, and
gcc: Java support to the compiler core.
gcc:
Executing install script for gcc-3.4.6-i486-1...

# installpkg glibc-solibs-2.3.6-i486-6.tgz
Installing package glibc-solibs-2.3.6-i486-6...
PACKAGE DESCRIPTION:
glibc-solibs: glibc-solibs (shared GNU C libraries)
glibc-solibs:
glibc-solibs: This package contains the shared libraries, binaries, and support
glibc-solibs: files required to run most Linux applications linked with glibc.
glibc-solibs:
Executing install script for glibc-solibs-2.3.6-i486-6...

and nothing happens...

n00bified 05-06-2007 04:44 PM

Why do you need gcc? There are much easier ways to install software then to try and compile from source. What are you trying to install?

nidalos 05-06-2007 05:21 PM

err BitchX, ati drivers, 3ddesktop (to impress friends :P), BOINC, xine, and many more apps :) If You'll be so kind and share Your wisdom with me... How can I install these without GCC and/or Glibc?

n00bified 05-06-2007 05:34 PM

You use gcc to make programs from the source code. This is what you get from the websites that make the program. Slackware offers "precompiled" programs, which means you don't need gcc.

You can find the packages here:
http://slackware.cs.utah.edu/pub/sla...1.0/slackware/

For example, bitchx is in n/bitchx-1.1-i486-5.tgz Download that and as root use "installpkg bitchx-1.1-i486-5.tgz Most programs have dependancies. If you install a program and it won't run open it from a console and note the library you don't have. These libraries will be in the l/ directory.

ATI drivers are a binary and need to be installed in a special way. See here:
http://www.linuxquestions.org/questi...d.php?t=402003

For programs that aren't included in the slackware distribution try: www.linuxpackages.net

nidalos 05-06-2007 05:45 PM

ohhhh :) how nice :) but what with glibc?

and why nothing happens when I installpkg?
Code:

# installpkg bitchx-1.1-i486-5.tgz
Installing package bitchx-1.1-i486-5...
PACKAGE DESCRIPTION:
bitchx: BitchX (chat client)
bitchx:
bitchx: BitchX is an advanced Internet Relay Chat (IRC) client.
bitchx:
Executing install script for bitchx-1.1-i486-5...

this really bake my noodle...

nothing... just give me this msg and stops... ;(

n00bified 05-06-2007 05:50 PM

Installpkg installs the package. To use the application you must execute it. Try typing "bitchx".

Glibc is a library of functions that should only really be needed for compilation.

nidalos 05-06-2007 05:56 PM

yay... and it installed it so fast? :o I though that sth is wrong... thanx very much!


All times are GMT -5. The time now is 01:34 AM.