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 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 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! |
Quote:
The command should be: # cd <rpm directory> # rpm -Uvh gcc* man rpm for more info. f7 doesn't use pirut. Quote:
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 |
Thans for the quick reply :)
Quote:
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 :) |
Quote:
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:
If you cannot find something that absolutely should be there, it probably isn't in your path. You can find it with "locate". Quote:
Quote:
note: "winmodem" means that it uses special software to work under windows. Quote:
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:
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. |
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 |
Quote:
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. |
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.
|
Quote:
|
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. |
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. |
Quote:
Code:
00:00.0 Host bridge: VIA Technologies, Inc. P4M266 Host Bridge Here's the ModemData.txt file, since this forum doesn't seem to allow attachments: http://corsair.cs.iupui.edu:19151/ModemData.txt Quote:
Quote:
Quote:
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:
|
Quote:
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 |
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 |
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: |
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. |