LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-19-2008, 12:55 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Rep: Reputation: 49
how to install gcc offline because my computer is not connected to internet


I have installed opensuse 10.3 from iso image available on website burnt on cd.
(1)First i searched my only single hard disk for gcc as follows
#find / -name gcc
OUTPUT
/usr/local/gcc-2.95.3/bin/gcc
/usr/lib/gcc
/home/lxuser/Desktop/gnat/gnat-2008-i686-gnu-linux-libc2.3-bin/lib/gcc
/home/lxuser/Desktop/gnat/gnat-2008-i686-gnu-linux-libc2.3-bin/lib/gcc/i686
-pc-linux-gnu/4.1.3/gcc-include/gcc
/home/lxuser/Desktop/gnat/gnat-2008-i686-gnu-linux-libc2.3-bin/libexec/gcc
/home/lxuser/Desktop/gnat/gnat-2008-i686-gnu-linux-libc2.3-bin/bin/gcc

(2)added these folders to search path & then checked search path as follows
echo $PATH
OUTPUT
/home/lxuser/Desktop/gnat/gnat-2008-i686-gnu-linux-libc2.3-bin/lib/gcc:/hom
e/lxuser/Desktop/gnat/gnat-2008-i686-gnu-linux-libc2.3-bin/lib/gcc/i686-pc-linux-gnu/4.1.3/gcc-include/gcc:/home/lxuser/Desktop/gnat/gnat-2008-i686-gnu-linux-libc2.3-bin/libexec/gcc:/home/lxuser/Desktop/gnat/gnat-2008-i686-gnu-linux-libc2.3-bin/bin/gcc:/usr/lib/gcc:/home/lxuser/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin

(3)Then i tried to install gstreamer ugly plugin as follows
linux-nude:/home/lxuser/Desktop/gst-plugins-ugly-0.10.9 # ./configure
OUTPUT
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking nano version... 0 (release)
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... none
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

i have
(1)gcc-gij(4.2)the system GNU JAVA bytecode interpreter
(2)Gcc42-gij(4.2.1_20070724) Java bytecode interpreter for gcc
(3)local-gcc(2.95.3)built to /usr/local
(4)libgcj42(4.2.1_20070724) java runtime library for gcc
(5)cpp42(4.2.1_20070724)the gcc preprocessor
(6)glibc(2.6.1)standard shared libraries(from GNU C library)
(7)libgcc42(4.2.1_20070724)C compiler runtime library in my package selector-Yast when I search for gcc.

If i arrange available software in pattern then there is base technology,desktop function,graphical environment nothing like development.

(2)I also downloaded gcc-4.3.2-6.i386.rpm from ftp://rpmfind.net/linux/fedora/devel...6/os/Packages/.
It gave the following error
linux-nude:/home/lxuser/Desktop/gst-plugins-ugly-0.10.9 # rpm -i /media/SOURABH/gcc-4.3.2-6.i386.rpm
OUTPUT
error: Failed dependencies:
cpp = 4.3.2-6 is needed by gcc-4.3.2-6.i386
glibc-devel >= 2.2.90-12 is needed by gcc-4.3.2-6.i386
libgcc >= 4.3.2-6 is needed by gcc-4.3.2-6.i386
libgomp = 4.3.2-6 is needed by gcc-4.3.2-6.i386
libgomp.so.1 is needed by gcc-4.3.2-6.i386

(3)also
# rpm -q gcc
OUTPUT
package gcc is not installed
# rpm -q gcc-c++
OUTPUT
package gcc-c++ is not installed
PLEASE NOTE
(1)my computer with open suse OS has no internet connection so I can download required files from somewhere else & install them on mine offline.
(2)machine hardware=processor type=i686 (from uname -mp),hardware platform=i386(from uname -i).
 
Old 10-19-2008, 02:30 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Gcc should be on your install CD/install DVD.

1. Go into YAST

2. Make sure your CD is one of the "install sources"

3. Look for GCC

4. Install it

Done!

BTW - you probably want to lose GJC. I'd strongly recommend using Sun Java, unless you had a compelling reason to do otherwise.
 
Old 10-22-2008, 02:26 AM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
Thank you paulsm4.I will make my opensuse10.3 cd as installation source & then see if i get gcc among available softwares to install.If I get any problem I will report here.
 
Old 10-24-2008, 12:32 AM   #4
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
i had downloaded iso image of opensuse10.3 live cd gnome(643MB) & burnt it on a cd.After adding cd drive as installation source i went to install software.Still there is no package named gcc.Also on searching for gcc the 7 things that appear are already installed & mentioned above .Now I am downloading extralanguages iso of 617 MB.Will that help?
 
Old 10-29-2008, 04:24 AM   #5
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
To all readers
language addon cd just provides translation for programs so not meant to install software.Download the dvd iso image of corresponding version & make that iso image as source repository then install whichever software you want by searching like i searched for gcc & installed it.This is for those whose linux computer not connected to internet.As you have seen above searching for suitable rpm is also difficult.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to verfiy or connect to network using settings from offline computer dcarsee Linux - Networking 3 08-22-2008 08:11 PM
linux 10.0 desktop connected to internet during install for updates so why not now? dicedaniels Linux - Newbie 3 11-05-2006 08:41 PM
How to install gcc without internet? karuci Ubuntu 10 07-09-2006 02:47 PM
Problem with DHCP on computer connected to the internet through a bridging firewall mullog *BSD 2 04-23-2005 09:41 AM
Tunnel all internet traffic through a ssh connected remote computer Bateman Linux - Networking 12 12-10-2004 06:53 AM


All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration