LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Fedora 7 lacking gcc (https://www.linuxquestions.org/questions/fedora-35/fedora-7-lacking-gcc-568536/)

eternicode 07-11-2007 05:41 PM

Fedora 7 lacking gcc
 
Hey, first post here ;)

About three days ago I installed Fedora 7 to a second hard drive (15GB) on my WinXP machine, setup to dual-boot. Everything works so far, I can reboot between the systems and access the windows drive from linux, all that good stuff. (To the best of my knowledge, I'm running the gnome desktop)

Unfortunately, I can't install any software. For some reason my installation doesn't have gcc, and I can't use yum for lack of internet access ( 1) I've got AOL, and can't compile/install PengAol to access it, 2) I can't/don't know how to see if my modem is even recognized by linux).

So my first question is, how can I install gcc? I've downloaded all sorts of RPM packages, but they all try to access the internet:

Code:

$ rpm --import gcc-4.1.2-12.ppc.rpm
error: gcc-4.1.2-12.ppc.rpm: import read failed(0)

I assume that I'm using this command wrong...

I've also double-clicked the rpm package on the desktop. This opens what I assume to be pirut. It reads the package, shows "The following packages will be installed.", and shows the package I want to install (the gcc compiler/s). I click "Apply", it starts "retrieving software information", then stops about halfway through and goes to "Unable to retrieve software information. This could be caused by not having a network connection available." Duh.

And I've also tried using yum:

Code:

$ sudo yum install gcc-4.1.2-12.ppc.rpm
Loading "installonlyn" plugin
Setting up install arguments
Parsing package install arguments
Examining gcc-4.1.2-12.ppc.rpm: gcc - 4.1.2-12.ppc
Marking gcc-4.1.2-12.ppc.rpm to be installed
Could not retrieve mirrorlist http:/ /mirrors.fedoraproject.org/mirrorlist?repo=fedora-7&arch=i386 error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot open/read repomd.xml file for repository: fedora
$

Everything's the same for the other two packages I've downloaded:
gcc-4.1.2-12.i386.rpm
gcc-c++-4.1.2-12.i386.rpm

Basically what I want is a precompiled g++ binary that I can use on the system to compile programs.

And what I need is a bit of guidance :rolleyes:

Hope someone can help :D

-EC

PS - I've also attempted to install gcc from my Live cd (which I used to install Fedora), but either I can't find it or it's not there. How would I go about finding this? Thanks!

Simon Bridge 07-11-2007 05:55 PM

Quote:

how can I install gcc?
F7 ships with gcc 4.1 ... it is a matter of installing the packet off your install media.
The command should be:

# cd <rpm directory>
# rpm -Uvh gcc*

man rpm for more info.
f7 doesn't use pirut.

Quote:

I can't/don't know how to see if my modem is even recognized by linux
This depends on what kind of modem it is. You use "lspci" to identify PCI devices and lsusb for USB devices. External serial devices or internal ISA devices are trickier... but are well supported.

If fedora sees a supported modem, it will usually tell you when you boot and ask if you want to configure it. So I guess you have an internal winmodem?

There is a script called "scanModem" that can help.

Have a read through:
http://www.mjmwired.net/resources/mjm-fedora-f7.html

eternicode 07-11-2007 06:27 PM

Thans for the quick reply :)

Quote:

F7 ships with gcc 4.1 ... it is a matter of installing the packet off your install media.
I looked through the Live disc I burnt. At the disc's root I have two directories (isolinux and sysroot [empty]) and a file squashfs.img. Under isolinux I have boot.cat, initrd.img, isolinux.bin, isolinux.cfg, splash.jpg, vesamenu.c32, and vmlinuz, all files. There are no other directories, nor anything that resembles an rpm directory. (I also did an "ls -la", but didn't see anything hidden).

I could've sworn the fedora site said pirut was the fedora software manager....

Running lspci gives "bash: lspci: command not found". Same for lsusb.

I do have an internal winmodem (internal and works with windows...). Scanmodem isn't found either, although I think I ran it earlier...and haven't deleted anything since...:confused:

But this modem has suddenly stopped working under windows *again*, so I'll boot back to win and see if I can get it working...*sigh*

I used that site (and a couple others) as a guide to setting up the dual-boot config, but I don't recall being given the option to install other packages like it mentions. Sounds like I'll probably be doing a reinstall....*sigh*

-EC

<EDIT> Booted to win, the modem worked fine and was able to connect with AOL. Now I just need to find it and test it under Linux... Already tried using minicom commands on ttyS[0-3], which are the ttyS's that /var/messages mentions. None returned anything, I couldn't even see the "at"s that I typed, which leads me to assume that none of these are the modem.

<EDIT2>:study: After looking over the RPM docs you pointed me to, I figured out I was misusing rpm by not running it as root XD I ran it to install the gcc package, and it gave me error messages pertaining to failed dependencies. I downloaded the dependency files from http://download.fedora.redhat.com/pu...386/os/Fedora/ as I needed them, and have successfully installed gcc and g++ \o/ now on to the modem issue...and thank you very much for your help :)

Simon Bridge 07-12-2007 04:06 AM

Quote:

I could've sworn the fedora site said pirut was the fedora software manager....
... So did I, I was corrected by someone in LQ. I understand the tool to use is YumEx. But looking around, I see that pirut is still around so maybe you were correct after all.

YumEx is what I used with FC2..4, but used yum directly when I knew the name of the package I wanted as the yum gui's are soo slooow. (Yum is slow too, as it insists on updating the list ...every ...single ...time!) But enough of that.

Quote:

Running lspci gives "bash: lspci: command not found". Same for lsusb.
/sbin/lspci then

If you cannot find something that absolutely should be there, it probably isn't in your path. You can find it with "locate".

Quote:

I looked through the Live disc I burnt.
Ahhh... I didn't know the fedora live could do an install? Yep - there is a good chance gcc ain't there. It is included with the full-install DVD. This is what you should have been using.

Quote:

I do have an internal winmodem (internal and works with windows...). Scanmodem isn't found either, although I think I ran it earlier...and haven't deleted anything since...
Cool... the winmodem is unlikely to work in linux (sad, I know)... intel-based modems have open-ish drivers, as do many others. Some manufacturers have linux drivers in the disk you get with the medem... but if it was bundled...

note: "winmodem" means that it uses special software to work under windows.

Quote:

Already tried using minicom commands on ttyS[0-3], which are the ttyS's that /var/messages mentions. None returned anything
Yep... that's a winmodem all right. Only hardware serial modems will map, natively, to a ttySx device.


scanModem is not part of the release... you gotta go get it:
http://132.68.73.235/linmodems/packages/scanModem.gz

Read: http://132.68.73.235/linmodems/index.html

But the fastest way to got a modem going is to beg, borrow or steal (possibly, purchase... but lets not get carried away) an external, serial modem. On new systems, they use the old mouse port. These are supported out of the box.

Quote:

After looking over the RPM docs you pointed me to
Yes, good... I see you used official RedHat/Fedora rpms... also good. You realize that with the modem going, you'd be able to "yum install gcc"?! But it was probably "character building" to experience "dependency hell".

Well done anyway.

Your trials won't be over if the source you need to compile requires the legacy version of gcc :) gcc32 is available for such things.

Junior Hacker 07-12-2007 09:59 PM

Sorry to have to correct you Simon.
Many pci modems work with Fedora, only Lucent Win Modem with mars chip set and Conexant modems have Linux 64bit support. Most others will work with 32bit. If you do have a Lucent Win Modem and you have a 64bit Fedora, you will need to use the martian driver kit which will require you to compile part of it in a 32bit environment.
The links provided by Simon did not open anything here, to get scanModem tool, go here and click on the scanModem link, on the next page read how to use it in the "So, what next (aka the real job) ?" section and hit the scanModem link to download the small utility. When executed, it will scan your system and produce a ton of paperwork in the same directory you are in, in a folder called "Modem". The "modemdata.txt" file will tell you which modem you have and where to get the source so you can compile drivers/module for it.
To install the gcc packages you have downloaded, issue command:
Code:

rpm -ivh packagename.rpm
When using rpm with the -Uvh option, you are upgrading existing packages, no sense upgrading something that's not installed, use the -ivh option to install. Type: man rpm in a terminal to figure out how to use rpm.

Simon Bridge 07-13-2007 01:38 AM

Quote:

Many pci modems work with Fedora
<sits up>

But do they provide the drivers on the install DVD (what about the live disk)? I thought you had to use yum or download an rpm.

A very large variety of winmodems do work in linux. Just not right away.

Connexant require a proprietary driver to get more than 14k4 out of them.
Are the intel modems open-source yet?
Last I looked, the smartlink driver was a yum install, and slamr was proprietary.
Is fedora 7 shipping with all these?

I think I may need to install fedora again just to see what it does now.

Junior Hacker 07-13-2007 02:04 AM

For most of the pci modems, you can get the source (proprietary) through linmodems.org, and after using scanModem, if it's too hard to read the documentation or too hard to figure out what to do, or how to get around errors, you can e-mail the modemdata.txt file into the linmodems maintainers to get assistance. There you can get source for slammer, intel, pctel, ess, lucent, motorola and possibly others. There are many obscure modem manufacturers that support Linux and you can get the source or pre-compiled packages from their site, like Connexant. I have a Connexant in my laptop and yes... it is limited to 1.4kps. But I also have a wireless card and there is allot of wireless networks in the area, so the modem is rarely used as I have a Lucent and Intel 537EP in my desktop with full speed. The laptop does not get used at home, only on the street. And once you buy a license for somewhere around $20.00 US for the Connexant, you can install as many different Linux as you want and get the source running at full speed with the license you have, as long as it's the same mother board and modem that was used to acquire the license.

Junior Hacker 07-13-2007 02:13 AM

Quote:

Originally Posted by Simon Bridge
I think I may need to install fedora again just to see what it does now.

If you're in need of a kink in the neck, go ahead. I think you're better off with what you got. Fedora Core 6 was a real pain in the back side, Fedora 7 sure looks good, but unstable just like FC6. I just removed it yesterday because I'm on dial-up and sick and tired of downloading hundreds of megabytes off updates every week and having to waste time re-booting more than once to get it to operate properly.

Simon Bridge 07-13-2007 03:07 AM

fedora is always unstable, I think that's kinda the point.

It is also why I stopped at FC4, just as things were working, the crew went and destabilized things again. I was tired of the 3-steps-forward + 2-steps-back pattern.

Anyway, I guess we're waiting on OP.

gusix 07-13-2007 09:51 AM

FC7 gcc NOT working
 
Hello,
please I would like to get some tips about "gcc" NOT working in a my recently installed FC7.

My first problem is that I cannot compile C-code (e.g., when trying to compile the basic "Hello" example, I get: hello.c: In function ‘main’:
hello.c:3: warning: incompatible implicit declaration of built-in function ‘printf’).

When "checking" if "I have gcc", I run: gcc -v, and get:

Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)

C-compilers have worked for me (after installation without any additional procedure) in RH7.2, FC1 and 6.
Any ideas where I'm wrong?
Thank you for your time, Gustavo.

eternicode 07-13-2007 01:17 PM

Quote:

/sbin/lspci then
Ah, there it is...

Code:

00:00.0 Host bridge: VIA Technologies, Inc. P4M266 Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP]
00:08.0 Modem: Smart Link Ltd. SmartLink SmartPCI562 56K Modem (rev 04)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
01:00.0 VGA compatible controller: S3 Inc. VT8375 [ProSavage8 KM266/KL266]

So I guess I have a Smarlink modem. I also got the scanModem utility working and mailed the modemdata.txt in to the list, but haven't gotten a response yet.

Here's the ModemData.txt file, since this forum doesn't seem to allow attachments:
http://corsair.cs.iupui.edu:19151/ModemData.txt

Quote:

Ahhh... I didn't know the fedora live could do an install?...full-install DVD. This is what you should have been using.
According to the fedora site, the Live CD is the recommended method of installation, so that's what I used. ;) and I also assumed that, to use the install DVD, the computer would have to have a DVD-capable drive...

Quote:

You realize that with the modem going, you'd be able to "yum install gcc"?!
Yes, but I wanted to get this set up asap :) This is more of an "Experimental Install"....

Quote:

fedora is always unstable
Speaking of which, I have a new problem.

I thought it'd be neat to partition my 1GB flash drive into two partitions. Lacking a partition manager in windows, I used fedora's gparted. Dismounted the volume, resized the main partition to allow a new 47MB partition, created the new 47MB partition, applied the changes. Everything seemed to work fine, I was able to work with both partitions under linux. Unfortunately, only the main partition showed up under windows. Turned out the 47M was not "activated". Couldn't find anything on Google, so I erased the 47M part and resized the main part to full. Now, any files I try to copy to the drive (namely my ModemData.txt from ~/Desktop/Modem) disappear as soon as I disconnect the drive. Any clue what happened or how to fix it? :scratch:

Quote:

hello.c:3: warning: incompatible implicit declaration of built-in function ‘printf’
Sounds like a code issue....

Junior Hacker 07-13-2007 02:25 PM

Quote:

The modem is supported by the Smartlink slamr driver
plus the slmodemd helper utility. Read the
Smartlink.txt and Modem/YourSystem.txt for follow through guidance.
In that "Modem" folder should be a "Smartlink.txt" file which will provide a link to the driver source, and the file should also have instructions on how to install it.
It is possible that you formatted your new 47MB partition in ext3 file system which is only accessible from Linux, which is why Windows cannot access it, Gparted should be able to format it in Fat32 also which is the format in most USB pen drives. It has nothing to do with being active, the term active only applies to which partition will be booted. For instance, if you go to boot your Linux partition, it will be made active, if the next time you boot up the computer and select Windows, now the Windows partition will be made active.
Before removing the USB pen drive from the Linux system, you must first unmount it safely or your data may not be written to it, to do this you can click on the "System" icon or similar on the desktop and select "Devices", then right click the pen drive's icon and select "remove safely", and wait for a change in the icon to signify it has been un-mounted. Or you can unmount it via command line, if it is listed in /media as my_pen, the command would be:
Code:

umount /media/my_pen
In Windows, there is a little green icon next to the clock, left click on it and a message window appears asking to safely remove the drive, left click that message to accept, wait till another message appears saying it is safe to remove it, some times you have to do this twice in Windows.

Junior Hacker 07-13-2007 02:30 PM

According to the modemdata.txt file, you will also need to install 'kernel-devel-2.6.21-1.3194.fc7' and 'kernel-headers-2.6.21-1.3194.fc7', the i686 packages. These will be required to compile the modem drivers/module. Once you have the packages in your /home directory, install with similar command:
Code:

rpm -ivh packagename.rpm
Of course, if rpm complains there are un-met dependencies, it should tell you what packages are missing and need to be installed first.

eternicode 07-13-2007 03:36 PM

Actually, I formatted the new partition in FAT16, which was the format of the main partition. And windows recognized that there was a partition there, but it wouldn't let me assign a drive letter to it because "It wasn't active. To activate the partition, reboot the computer". Needless to say "rebooting" didn't help much -_-

But umount seems to be "preserving" the data correctly...but I wasn't having this issue before I used gparted...I'd like to be able to use the drive pnp-style, rather than having to type umount every time I use it (which is frequently)

OK, I've now managed to setup ungrab-winmodem and slmodemd and find modprobe. Used the setup commands (under root, of course) and used minicom (in a second terminal) to get "ok"s from the modem (!!!)

Unfortunately the modem is only usable when it's "mounted" (I think it's being mounted), which only happens when I use the "slmodemd -c YOUR_COUNTRY /dev/slamr0" command. When I use that, it does a bunch of stuff and says "Use /dev/ttySL0 as modem device, CTRL+C for termination". Then I can't use the terminal until I "CTRL+C for termination", at which point the modem no longer exists. :scratch: Any way to have this mount itself at boot, like I have with my windows drive (using /etc/fstab)?

And then to connect to AOL using the modem...what a nightmare...:study:

gusix 07-13-2007 06:46 PM

gcc does NOT work in FC7
 
Hello,
please I would like to get some tips about "gcc" NOT working in a my recently installed FC7.

My first problem is that I cannot compile C-code (e.g., when trying to compile the basic "Hello" example, I get: hello.c: In function ‘main’:
hello.c:3: warning: incompatible implicit declaration of built-in function ‘printf’).

When "checking" if "I have gcc", I run: gcc -v, and get:

Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)

C-compilers have worked for me (after installation without any additional procedure) in RH7.2, FC1 and 6.[/B]Any ideas where I'm wrong?
Thank you for your time, Gustavo.


All times are GMT -5. The time now is 10:07 AM.