install gcc and make from a disk image or external drive

Hello,

I just installed SUSE 12.2 from a DVD on computer A. However, the DVD does not have gcc or make. Computer A does not have an internet connection.

I have other computers with internet (Macs) and downloaded openSUSE-12.2-DVD-x86_64.iso, which (I think) contains what I want. I could copy this file to computer A using an external drive.

What commands do I then give to the terminal on Computer A to install gcc and make?

Thanks.

You will need dependencies of the package as well. Then you can use yast to temporarily add a flat folder full of rpms as a repository (even if the flat folder is on a cd). Go into the software settings and view the repository and install the rpms from there. Then when done remove the folder as a repository. As long as you have all the dependencies of course. They will also need to be the correct arch. x86_64 packages will not install on a i586 system.

I am not 100% sure if the dvd image of openSUSE has gcc/make on it. If it does the easiest path might just be installing and burning one of those.

Hi
Just use YaST Software Repositories to add the iso image as a local
repository. Then disable the DVD as an install source.

Both gcc and make are on the DVD…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 3 days 9:00, 4 users, load average: 0.03, 0.06, 0.12
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Thanks but it didn’t work. Yast says “unable to save changes to the repository. valid metadata not found.”

Now what??

Hi
The iso image is on Computer A’s hard drive?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 3 days 15:06, 5 users, load average: 0.18, 0.08, 0.06
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Yes it is.

Hi
Not permissions on the directory? Can you post the output from;


mount
zypper lr -d


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 4 days 1:22, 5 users, load average: 0.11, 0.14, 0.14
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Thanks. I figured out the problem was that I was not logged in as root (even though I had root privileges). I have installed make.

But now make can’t find gcc. I’ve looked, and it seems gcc is not installed. How do I get it? I’ve tried searching the web with “suse 12.2 gcc” but nothing usable comes up. I find endless chains of links to other pages with descriptions or links, but nothing usable comes up. I will have to download some file (with my Mac) that can be carried over with an external drive to computer A, which is running suse 12.2.

Hi
You should be able to mount the iso image on your mac? Then you can browse the dvd contents and copy over the rpms.

gcc is just a softlink to gcc 4.7 so you will need both rpms.

Unfortunately software search is down at present, but you can search here and download the rpms individually for your arch;
Search?

Thanks again. Bear with me here, as I am no expert in Linux or Unix.

I am able to see the contents of my iso file. Yes, I find within it under suse/x86_64 the item gcc47-4.7.1(blah blah)64.rpm, occupying 6.1 meg. That sounds good! But how in the world do I install it?

Hmm. I click on these items i see listed in the iso and a box pops up “do you want to install with Yast?” I say yes, but it doesn’t work. It keeps failing. I keep getting a message about linux-glibc-devel installation failed. I hope it’s not trying to download something, as I have no internet connection! The whole point is that I need to have everything here on computer A as a file or files.

Hi
Then connect the drive to the target system, become root user and cd to
where you saved the rpm, then;


zypper in <your rpm>

You could also just copy the rpm to a local directory on the target
machine and do the same.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 16:21, 3 users, load average: 0.00, 0.10, 0.22
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

I finally go it. Eventually, reading the error messages, I figured out I needed several rpm files, but first I needed to have | |linux-glibc-devel-3.4.0-2.1.23.noarch.rpm. After that, to my astonishment, it all worked.
|—|

|

Thanks for your help.

I know the people who do Linux are mostly volunteers, and I thank them all. I do wish, however, that someone had thought of this problem. It would be nice if a single large archive could be produced having all developer tools and C compilers, requiring one click to install.

It is single click if you have correct openSUSE repository for your version. Just select gcc and yast/zypper will automatically find and install all needed dependencies. If you tried it and it did not work, this is a bug that must be reported. But as far as I understand you tried to install RPM directly.

Hi
It’s a standalone system, no internet and a new user :wink:


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 1 day 9:26, 3 users, load average: 0.18, 0.11, 0.07
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Yes, but installation DVD was available, was not it? This is “correct openSUSE repository” :slight_smile:

Hi
Yes that was tried :wink: like I said new user, they found it easier to
install via rpm/zypper. The reason for the local repo iso image I’m
sure will be the subject of another thread.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.6-2.10-desktop
up 1 day 10:08, 3 users, load average: 0.24, 0.12, 0.07
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Summary of my problem:

  1. Have used Suse before, since version 9.3. Long time programmer, mostly on Macs, many programming languages. Use C for large projects. Know a fair amount of Unix commands, but never heard of zypper before.

  2. Desired target Linux computer does not have internet.

  3. Bought installation DVD for Suse 12.2. Installed it. Found no make command or gcc.

  4. Recommend you have one large file somewhere - iso, rpm, whatever - that can be downloaded to one computer and ported to another with an external drive. It could be 100 meg or more in size, don’t care. Then one (or two clicks) will effortlessly install all development environment, C/C++ compilers, 32 bit, 64 bit, etc. (I don’t care about Fortran, but I guess some people would.)

It took me hours of puzzling over error messages and searching the internet to finally get every file I needed. Were I not experienced in Unix commands, it would have been utterly hopeless.

Am 01.10.2012 16:16, schrieb rhlewis:
> 3) Bought installation DVD for Suse 12.2. Installed it. Found no make
> command or gcc.
Where did you buy it? I looked in my 12.2 DVD downloaded from
opensuse.org and it contains, make, gcc and even some not so often used
compilers like gfortran, so everything for basic development is there in
the iso.


PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.4 | GeForce GT 420
ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.9.1 | HD 3000
eCAFE 800: oS 12.2 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10

“Where did you buy it? I looked in my 12.2 DVD downloaded from
opensuse.org and it contains, make, gcc and even some not so often used
compilers like gfortran, so everything for basic development is there in
the iso.”

Actually on the disk? Not requiring internet?

I never heard of opensuse.org before this. I found it on Amazon and bought it for around $26.00 (with grant money :wink: ).