Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have just installed Fedora 17 on a laptop. I have "dual boot" but only the Windows side can access the Internet. For some reason, the Fedora I installed did not have development tools. That's OK; I just want gcc.
I can find lots of ways to fetch gcc source but that seems unnecessary and won't work directly anyway: I don't have any C compiler.
I see that it's "real easy" with 'yum' but I don't have Internet from the machine that would be yumming.
With Google I can find prepared binaries, but the ones I saw are 8 years old or more. Is that the best option?
Is there a simple way for me to download a current binary or 'rpm' package for gcc?
Thank you. My dvd (actually cd) didn't work originally; let me explain how I've come here in case that helps.
I followed instructions which seemed correct and booted a Fedora CD, but this failed with error messages:
Quote:
mount: /dev/loop2: can't read superblock
umount: /run/initramfs/squashfs: not mounted
mount: unknown file system type: 'DM_snapshot_cow'
mount: unknown file system type: 'DM_snapshot_cow'
...
In another forum I was advised that this error was explicable and not uncommon and that the easiest workaround was to use LinuxLive to copy a CD Fedora image to Memory Stick, and boot/install from Stick instead of from CD. I did this. That image was 646 MB and has the name "Fedora-17-i686-Live-Desktop." I booted the Memory Stick, installed Fedora; this all seemed to work fine.
But I do not have 'gcc'. Is there an easy way to tell if 'gcc' was even on the 646 MB image I started with?
While I'm asking, let me ask a "Meta-question":
The system is also missing 'tcsh' and 'gimp', two programs I like to use. I notice that 'python', on the other hand, is present.
Is there some legal or other reason why 'python' installs by default, but other useful programs (like 'gcc') do not?
Is there some legal or other reason why 'python' installs by default, but other useful programs (like 'gcc') do not?
Packages are only installed if they
1) are required by another package, or
2) are selected by the user
Python is required by YUM, which is why it's installed. GCC is not required by anybody, so unless you select it during installation, it won't be installed.
Fedora is an experimental OS, you REALLY need regular updates to fix the bugs with it. This means that it's pretty important you get your internet working. Until then you should be able to mount your install USB and set it up as a repository for YUM so you can grab a few of these missing binaries off of it. Keep it mind though that the live CD image only includes a minimal set of packages to keep the size down. It may not even have GCC on it, you might need the DVD image to get that.
I've been using Fedora for many years, without Internet, and with essentially no trouble. This may be partly because my needs are very simple. Hardware problems meant I needed a new laptop fast, though my old machine (with Fedora 8 installed) works well enough to get files off of. I've already transferred one binary successfully from the old machine.
If no simpler solution presents itself, I may just copy the pieces of 'gcc' via external drive from old machine to new; I do realize this would be tedious and error-prone. I would much prefer to have a simple tarball (or equivalent) to get 'gcc' but the solutions suggested do not allow that. (How much variability can there be in Fedora 17 gcc? Why can't someone point me to a simple tarball or equivalent to download without using 'yum' utility?) I could find a simple C compiler binary; download that and 'make gcc' (I already did download 'gcc' source, hoping it would have usable binaries); if someone recommends a simple C compiler good enough to make 'gcc' but simple enough to install without 'yum' I may try that.
When I selected my 'iso' Fedora image for flash drive in the first place, I noticed no option for 'Linux with gcc'. I could start from scratch, preparing a LinuxLive memory stick with a more complete Linux and reinstalling, but am reluctant to try that without better confidence.
ETA: The stick I created had Fedora 17 "Beefy Miracle". Googling around to pages like http://docs.fedoraproject.org/en-US/...ide/index.html
I find no mention that 'gcc' is omitted (not that it is included). If I boot that stick I get 'gcc not found' etc., but is that definitive? [U]I do not see any "Very Beefy Miracle" whose name would suggest it is "beefier" than "Beefy Miracle".
Is there a Fedora forum where I can get a definitive answer?
Last edited by singburisam; 07-08-2012 at 12:01 PM.
Why can't someone point me to a simple tarball or equivalent to download without using 'yum' utility?)
Because you can't just install gcc. It has a lot of dependencies that must be installed as well in order for it to function properly. yum will handle all of this for you, otherwise you're going to be going through a LOT of back and forth acquiring packages on the system with internet, copying them over, trying the installation, finding a new dependency, downloading it on the other system, copy it over, try again, etc.
Quote:
Originally Posted by singburisam
When I selected my 'iso' Fedora image for flash drive in the first place, I noticed no option for 'Linux with gcc'. I could start from scratch, preparing a LinuxLive memory stick with a more complete Linux and reinstalling, but am reluctant to try that without better confidence.
It's because you downloaded the live CD iso. This only has a minimal set of packages required for the installation. Had you downloaded the DVD instead, you would have been prompted during the installation to select which packages you wanted to install, gcc and its dependencies being one of them.
If I were in your place right now, I would download the DVD iso on the system with internet, use a big enough USB drive to copy it over, mount the iso on your F17 system, and then set it up as a repo for yum.
If I were in your place right now, I would download the DVD iso on the system with internet, use a big enough USB drive to copy it over, mount the iso on your F17 system, and then set it up as a repo for yum.
Thank you. After preparing this DVD iso on a USB drive, I wonder if it would be simplest to then just use it to re-install from scratch. ... Well I can try 'yum's first and see if they work fine.
I would have done this to begin with, but was too ignorant to even know of this alternative. :-(
LinuxLive doesn't present it as an option (though I should use LinuxLive to "burn" the USB drive, is that correct?)
I Googled for something like "Download Fedora" but went to pages that never mentioned the alternative.
Thank you. After preparing this DVD iso on a USB drive, I wonder if it would be simplest to then just use it to re-install from scratch. ... Well I can try 'yum's first and see if they work fine.
I would have done this to begin with, but was too ignorant to even know of this alternative. :-(
LinuxLive doesn't present it as an option (though I should use LinuxLive to "burn" the USB drive, is that correct?)
Depends on if you want to use the USB drive as the repo itself, or if you just want to use it to copy the iso over to your F17 system (where you can then set up a local repo). If you just want to set up a local repo and use the USB drive to copy the iso over, then you could just drag and drop the iso onto the USB drive, then do the same to get it onto the F17 system. If you want to use the USB drive as the repo itself, then you would need to "burn" the iso to the USB using something like LinuxLive.
Quote:
Originally Posted by singburisam
I Googled for something like "Download Fedora" but went to pages that never mentioned the alternative.
I do have 64-bit laptop, but should I download the 32-bit which is "Most compatible"?
If you have <3GB of RAM then you can use the 32-bit without a problem, otherwise I would go with the 64-bit. I've been using 64-bit Fedora for close to seven years now and have never run into a compatibility problem as far as I can remember. A 64-bit OS can run both 32 and 64-bit binaries, a 32-bit OS can only run 32-bit binaries...so in some respects the 64-bit OS can be MORE compatible, as long as the hardware supports it.
Last edited by suicidaleggroll; 07-08-2012 at 12:43 PM.
Depends on if you want to use the USB drive as the repo itself, or if you just want to use it to copy the iso over to your F17 system (where you can then set up a local repo). If you just want to set up a local repo and use the USB drive to copy the iso over, then you could just drag and drop the iso onto the USB drive, then do the same to get it onto the F17 system. If you want to use the USB drive as the repo itself, then you would need to "burn" the iso to the USB using something like LinuxLive.
Thank you. I hope I'm not wearing out my welcome by asking newbie questions but an old motto is "Understand fully or copy exactly." I definitely do not understand fully.
You describe two options: "copy iso" and "burn repo." It sounds like the latter option makes more sense, especially since in the instructions linked to upthread, the step 'createrepo' seems to require a repo already for 'yum install' :
Quote:
Type the following command (replace iso file name with the actual iso file):
# yum install createrepo
# mkdir -p /mnt/iso/{1,2,3}
# mount -o loop /path/to/centos1.iso /mnt/iso/1
# cd /mnt/iso
# createrepo .
# yum clean all
# vi /etc/yum.repos.d/iso.repo
{Appending following text:}
[My ISO Repository]
baseurl=file:///mnt/iso
enabled=1
# yum install package-name
With the "burn repo" option, once I have the burned repo, would I start at
vi /etc/yum.repos.d/iso.repo
using USB drive as the baseurl?
Last edited by singburisam; 07-08-2012 at 11:07 PM.
Distribution: Ubuntu 12.04 LTE 32-bit on all platforms
Posts: 6
Rep:
Why don't you replace Fedora with a distro that has gcc, python and good hardware support to get your LAN hardware working, etc., already in it ? What's indispensible about Fedora ?
I've had good luck so far with the Ubuntu so-called "special" installer versions, both the 32-bit and the 64-bit flavors. The "special" versions seem to have better hardware support than the standard versions, which installed on some strange motherboards I have on which the standard version installer bombed.
It would be a lot more straight-forward and easier to use an optical drive, USB or internal desktop type, to install with an ISO file burned to a CD or DVD disc. You could download and burn the ISO images in Windows.
Why don't you replace Fedora with a distro that has gcc, python and good hardware support to get your LAN hardware working, etc., already in it ? What's indispensible about Fedora ?
It's not about the distro, it's about the way they installed it, and they environment they're in. Fedora does have GCC etc. that's not relevant.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.