LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 07-30-2010, 05:42 AM   #1
badriinvenkat
Member
 
Registered: Jul 2010
Posts: 39

Rep: Reputation: 15
Unhappy Please help me in installing gcc on linux mint


Hello all i am a new bee here and i am using linux mint in my project and i need to install gcc on it....

it is showing the following problems

badri@linuxmint ~/Desktop $ ls
27 july 29 july opencv OpenCV-2.1.0.tar.bz2 simple-examples
28 july contents OpenCV-2.1.0 OpenCV-2.1-Readme.txt sudha
badri@linuxmint ~/Desktop $ cd
badri@linuxmint ~ $ ls
3rdparty Desktop OpenCV-2.1-Readme.txt
apps doc opencv.build
bin Documents OpenCVConfig.cmake
camera5-section.avi Downloads Pictures
CMakeCache.txt Firefox_wallpaper.png Public
CMakeFiles install_manifest.txt samples
cmake_install.cmake interfaces src
cmake_uninstall.cmake lib Templates
CTestTestfile.cmake Makefile tests
cvconfig.h Music unix-install
data OpenCV-2.1.0 Videos
badri@linuxmint ~ $ ls
3rdparty Desktop OpenCV-2.1-Readme.txt
apps doc opencv.build
bin Documents OpenCVConfig.cmake
camera5-section.avi Downloads Pictures
CMakeCache.txt Firefox_wallpaper.png Public
CMakeFiles install_manifest.txt samples
cmake_install.cmake interfaces src
cmake_uninstall.cmake lib Templates
CTestTestfile.cmake Makefile tests
cvconfig.h Music unix-install
data OpenCV-2.1.0 Videos
badri@linuxmint ~ $ get gcc
No command 'get' found, did you mean:
Command 'ge' from package 'pvm-examples' (universe)
Command 'cget' from package 'cget' (universe)
Command 'dget' from package 'devscripts' (main)
Command 'gen' from package 'multimon' (universe)
Command 'gem' from package 'rubygems1.8' (universe)
Command 'gem' from package 'rubygems1.9.1' (universe)
Command 'eet' from package 'libeet-bin' (universe)
Command 'nget' from package 'nget' (universe)
Command 'net' from package 'samba-common-bin' (main)
Command 'net' from package 'samba4-clients' (universe)
Command 'wget' from package 'wget' (main)
Command 'git' from package 'git-core' (main)
Command 'fet' from package 'fet' (universe)
Command 'kget' from package 'kget' (main)
get: command not found
badri@linuxmint ~ $ gcc
gcc: no input files
badri@linuxmint ~ $ ls
3rdparty Desktop OpenCV-2.1-Readme.txt
apps doc opencv.build
bin Documents OpenCVConfig.cmake
camera5-section.avi Downloads Pictures
CMakeCache.txt Firefox_wallpaper.png Public
CMakeFiles install_manifest.txt samples
cmake_install.cmake interfaces src
cmake_uninstall.cmake lib Templates
CTestTestfile.cmake Makefile tests
cvconfig.h Music unix-install
data OpenCV-2.1.0 Videos
badri@linuxmint ~ $ cd Downloads
badri@linuxmint ~/Downloads $ ls
binutils-2.20.51.0.7-5.fc14.src.rpm ICON-Gartoon.tar.gz
Fedora-13-i686-Live.iso ICON-Kreski-Lines.tar.gz
Fedora-13-x86_64-Live.iso MCity-Alphacube.tar.gz
firefox-3.6.8.tar.bz2 MCity-Outcrop.tar.gz
gcc-4.4.4-10.fc13.i686.rpm MCity-ThinMC.tar.gz
GDM-BrasillinuxEye.tar.gz
badri@linuxmint ~/Downloads $ ls
binutils-2.20.51.0.7-5.fc14.src.rpm Fedora-13-x86_64-Live.iso gcc-3.2.2-5.i386.rpm ICON-Gartoon.tar.gz MCity-Alphacube.tar.gz MCity-ThinMC.tar.gz
Fedora-13-i686-Live.iso firefox-3.6.8.tar.bz2 GDM-BrasillinuxEye.tar.gz ICON-Kreski-Lines.tar.gz MCity-Outcrop.tar.gz
badri@linuxmint ~/Downloads $ rpm - i ^C
badri@linuxmint ~/Downloads $ rpm - i gcc-3.2.2-5.i386.rpm
RPM version 4.7.2
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: rpm [-afgpWcdlsKiv?] [-a|--all] [-f|--file] [-g|--group] [-p|--package] [-W|--ftswalk] [--pkgid] [--hdrid] [--fileid] [--specfile] [--triggeredby]
[--whatrequires] [--whatprovides] [--nomanifest] [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list] [--queryformat=QUERYFORMAT] [-s|--state]
[--nofiledigest] [--nomd5] [--nofiles] [--nodeps] [--noscript] [--comfollow] [--logical] [--nochdir] [--nostat] [--physical] [--seedot] [--xdev]
[--whiteout] [--addsign] [-K|--checksig] [--delsign] [--import] [--resign] [--nodigest] [--nosignature] [--initdb] [--rebuilddb] [--aid]
[--allfiles] [--allmatches] [--badreloc] [-e|--erase=<package>+] [--excludedocs] [--excludepath=<path>] [--fileconflicts] [--force] [--force-debian]
[-F|--freshen=<packagefile>+] [-h|--hash] [--ignorearch] [--ignoreos] [--ignoresize] [-i|--install] [--justdb] [--nodeps] [--nofiledigest] [--nomd5]
[--nocontexts] [--noorder] [--nosuggest] [--noscripts] [--notriggers] [--oldpackage] [--percent] [--prefix=<dir>] [--relocate=<old>=<new>]
[--replacefiles] [--replacepkgs] [--test] [-U|--upgrade=<packagefile>+] [--quiet] [-D|--define='MACRO EXPR'] [-E|--eval='EXPR'] [--macros=<FILE:...>]
[--nodigest] [--nosignature] [--rcfile=<FILE:...>] [-r|--root=ROOT] [--querytags] [--showrc] [--quiet] [-v|--verbose] [--version] [-?|--help]
[--usage] [--scripts] [--setperms] [--setugids] [--conflicts] [--obsoletes] [--provides] [--requires] [--info] [--changelog] [--xml] [--triggers]
[--last] [--dupes] [--filesbypkg] [--fileclass] [--filecolor] [--fscontext] [--fileprovide] [--filerequire] [--filecaps]
badri@linuxmint ~/Downloads $ ls
binutils-2.20.51.0.7-5.fc14.src.rpm firefox-3.6.8.tar.bz2 gcc-3.2.3-58.src.rpm.part ICON-Kreski-Lines.tar.gz MCity-ThinMC.tar.gz
Fedora-13-i686-Live.iso gcc-3.2.2-5.i386.rpm GDM-BrasillinuxEye.tar.gz MCity-Alphacube.tar.gz
Fedora-13-x86_64-Live.iso gcc-3.2.3-58.src.rpm ICON-Gartoon.tar.gz MCity-Outcrop.tar.gz
badri@linuxmint ~/Downloads $ rpm - i gcc-3.2.3-58.src.rpm
RPM version 4.7.2
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL

Usage: rpm [-afgpWcdlsKiv?] [-a|--all] [-f|--file] [-g|--group] [-p|--package] [-W|--ftswalk] [--pkgid] [--hdrid] [--fileid] [--specfile] [--triggeredby]
[--whatrequires] [--whatprovides] [--nomanifest] [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list] [--queryformat=QUERYFORMAT] [-s|--state]
[--nofiledigest] [--nomd5] [--nofiles] [--nodeps] [--noscript] [--comfollow] [--logical] [--nochdir] [--nostat] [--physical] [--seedot] [--xdev]
[--whiteout] [--addsign] [-K|--checksig] [--delsign] [--import] [--resign] [--nodigest] [--nosignature] [--initdb] [--rebuilddb] [--aid]
[--allfiles] [--allmatches] [--badreloc] [-e|--erase=<package>+] [--excludedocs] [--excludepath=<path>] [--fileconflicts] [--force] [--force-debian]
[-F|--freshen=<packagefile>+] [-h|--hash] [--ignorearch] [--ignoreos] [--ignoresize] [-i|--install] [--justdb] [--nodeps] [--nofiledigest] [--nomd5]
[--nocontexts] [--noorder] [--nosuggest] [--noscripts] [--notriggers] [--oldpackage] [--percent] [--prefix=<dir>] [--relocate=<old>=<new>]
[--replacefiles] [--replacepkgs] [--test] [-U|--upgrade=<packagefile>+] [--quiet] [-D|--define='MACRO EXPR'] [-E|--eval='EXPR'] [--macros=<FILE:...>]
[--nodigest] [--nosignature] [--rcfile=<FILE:...>] [-r|--root=ROOT] [--querytags] [--showrc] [--quiet] [-v|--verbose] [--version] [-?|--help]
[--usage] [--scripts] [--setperms] [--setugids] [--conflicts] [--obsoletes] [--provides] [--requires] [--info] [--changelog] [--xml] [--triggers]
[--last] [--dupes] [--filesbypkg] [--fileclass] [--filecolor] [--fscontext] [--fileprovide] [--filerequire] [--filecaps]
badri@linuxmint ~/Downloads $ commands
commands: command not found
badri@linuxmint ~/Downloads $ cd
badri@linuxmint ~ $ cd
badri@linuxmint ~ $ cd/
bash: cd/: No such file or directory
badri@linuxmint ~ $ cd /
badri@linuxmint / $ ls
bin boot dev etc home host initrd.img lib lost+found media mnt opt proc root sbin selinux srv sys tmp usr var vmlinuz
badri@linuxmint / $ cd /
badri@linuxmint / $ ls
bin boot dev etc home host initrd.img lib lost+found media mnt opt proc root sbin selinux srv sys tmp usr var vmlinuz
badri@linuxmint / $ dev
No command 'dev' found, did you mean:
Command 'xev' from package 'x11-utils' (main)
Command 'dav' from package 'dav-text' (universe)
Command 'ev' from package 'radiance' (universe)
Command 'rev' from package 'util-linux' (main)
Command 'ddv' from package 'ncbi-tools-x11' (universe)
Command 'mev' from package 'gpm' (universe)
Command 'rdev' from package 'util-linux' (main)
dev: command not found
badri@linuxmint / $ cd dev
badri@linuxmint /dev $ cd
badri@linuxmint ~ $ ls
3rdparty CMakeFiles data Firefox_wallpaper.png Music Pictures tests
apps cmake_install.cmake Desktop install_manifest.txt OpenCV-2.1.0 Public unix-install
bin cmake_uninstall.cmake doc interfaces OpenCV-2.1-Readme.txt samples Videos
camera5-section.avi CTestTestfile.cmake Documents lib opencv.build src
CMakeCache.txt cvconfig.h Downloads Makefile OpenCVConfig.cmake Templates
badri@linuxmint ~ $ ls
3rdparty CMakeFiles data Firefox_wallpaper.png Music Pictures tests
apps cmake_install.cmake Desktop install_manifest.txt OpenCV-2.1.0 Public unix-install
bin cmake_uninstall.cmake doc interfaces OpenCV-2.1-Readme.txt samples Videos
camera5-section.avi CTestTestfile.cmake Documents lib opencv.build src
CMakeCache.txt cvconfig.h Downloads Makefile OpenCVConfig.cmake Templates
badri@linuxmint ~ $ cd downloads
bash: cd: downloads: No such file or directory
badri@linuxmint ~ $ cd Downloads
badri@linuxmint ~/Downloads $ ls
binutils-2.20.51.0.7-5.fc14.src.rpm firefox-3.6.8.tar.bz2 gcc-4.4.4-10.fc13.i686.rpm ICON-Kreski-Lines.tar.gz MCity-ThinMC.tar.gz
Fedora-13-i686-Live.iso gcc-3.2.2-5.i386.rpm GDM-BrasillinuxEye.tar.gz MCity-Alphacube.tar.gz
Fedora-13-x86_64-Live.iso gcc-3.2.3-58.src.rpm ICON-Gartoon.tar.gz MCity-Outcrop.tar.gz
badri@linuxmint ~/Downloads $ rpm -i/gcc-4.4.4-10.fc13.i686.rpm
-i/gcc-4.4.4-10.fc13.i686.rpm: unknown option
badri@linuxmint ~/Downloads $ rpm -i gcc-4.4.4-10.fc13.i686.rpm
rpm: please use alien to install rpm packages on Debian, if you are really sure use --force-debian switch. See README.Debian for more details.
badri@linuxmint ~/Downloads $ alien
The program 'alien' is currently not installed. You can install it by typing:
sudo apt-get install alien
badri@linuxmint ~/Downloads $ sudo apt-get install alien
[sudo] password for badri:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
lsb-rpm lintian
The following NEW packages will be installed
alien
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 84.9kB of archives.
After this operation, 254kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
alien
Authentication warning overridden.
Get: 1 http://archive.ubuntu.com/ubuntu/ lucid/main alien 8.79 [84.9kB]
Fetched 84.9kB in 0s (1,457kB/s)
Selecting previously deselected package alien.
(Reading database ... 134683 files and directories currently installed.)
Unpacking alien (from .../archives/alien_8.79_all.deb) ...
Processing triggers for man-db ...
Setting up alien (8.79) ...
badri@linuxmint ~/Downloads $ rpm -i gcc-4.4.4-10.fc13.i686.rpm
rpm: please use alien to install rpm packages on Debian, if you are really sure use --force-debian switch. See README.Debian for more details.
badri@linuxmint ~/Downloads $ force-debain switch
force-debain: command not found
badri@linuxmint ~/Downloads $ force-debain
force-debain: command not found
badri@linuxmint ~/Downloads $ ls
binutils-2.20.51.0.7-5.fc14.src.rpm firefox-3.6.8.tar.bz2 gcc-4.4.4-10.fc13.i686.rpm ICON-Kreski-Lines.tar.gz MCity-ThinMC.tar.gz
Fedora-13-i686-Live.iso gcc-3.2.2-5.i386.rpm GDM-BrasillinuxEye.tar.gz MCity-Alphacube.tar.gz
Fedora-13-x86_64-Live.iso gcc-3.2.3-58.src.rpm ICON-Gartoon.tar.gz MCity-Outcrop.tar.gz
badri@linuxmint ~/Downloads $ rpm -i gcc-4.4.4-10.fc13.i686.rpm
rpm: please use alien to install rpm packages on Debian, if you are really sure use --force-debian switch. See README.Debian for more details.
badri@linuxmint ~/Downloads $ ls
binutils-2.20.51.0.7-5.fc14.src.rpm firefox-3.6.8.tar.bz2 gcc-4.4.4-10.fc13.i686.rpm ICON-Kreski-Lines.tar.gz MCity-ThinMC.tar.gz
Fedora-13-i686-Live.iso gcc-3.2.2-5.i386.rpm GDM-BrasillinuxEye.tar.gz MCity-Alphacube.tar.gz
Fedora-13-x86_64-Live.iso gcc-3.2.3-58.src.rpm ICON-Gartoon.tar.gz MCity-Outcrop.tar.gz
badri@linuxmint ~/Downloads $ ^C
badri@linuxmint ~/Downloads $


i will be very happy if any one helps me in sorting out this problem
 
Old 07-30-2010, 07:42 AM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
apt-get install build-essential
 
Old 07-30-2010, 07:52 AM   #3
badriinvenkat
Member
 
Registered: Jul 2010
Posts: 39

Original Poster
Rep: Reputation: 15
badri@linuxmint / $ apt-get install build-essential
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
badri@linuxmint / $
 
Old 07-30-2010, 07:54 AM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
badriinvenkat,

Have you tried it using the Synaptic? or the Add/Remove Program? It is there in the Menus.
 
1 members found this post helpful.
Old 07-30-2010, 07:56 AM   #5
badriinvenkat
Member
 
Registered: Jul 2010
Posts: 39

Original Poster
Rep: Reputation: 15
no could you please tell me in detail??
 
Old 07-30-2010, 08:05 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

1) close Synaptic ( Or any Package Manager )
if you want to use the command line for 'apt-get'.

2) sudo apt-get update ( to refresh the package list ).

3) sudo apt-get install gcc g++ autoconf automake bison flex libtool
( 'build-essential' is mainly for building deb packages )

Mint Felicia shows 26,000 packages in Synaptic :
No need to convert any rpm packages with alien.
And don't download anything. The 26,000 most basic
packages can be installed from Synaptic.
Or with 'sudo apt-get install <name>'
..
P.S. : OpenCV, see Synaptic Search → libcv1 , etc. etc.
..

Last edited by knudfl; 07-30-2010 at 08:11 AM.
 
1 members found this post helpful.
Old 07-30-2010, 08:15 AM   #7
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
badriinvenkat,

Quote:
no could you please tell me in detail??
Just click Menu -> Administration -> Synaptic just that. If I remember a root password is asked when the window is brought up, just enter it. Then, at the Search slot where you can type a keyword type therein 'gcc', choices of everything available about gcc shall be offered below at the main window. Click or highlight whichever your choices are the at the top click the button 'Apply'. Everything is automated so long as you are on line. All you need is just to wait.

Hope this helps. Good luck.
 
Old 07-30-2010, 08:24 AM   #8
badriinvenkat
Member
 
Registered: Jul 2010
Posts: 39

Original Poster
Rep: Reputation: 15
@knudfl

thank you so much for your info.....could you please tell me how to open that gcc and i need to compile a programme for grabbing images from an external hardware....
 
Old 07-30-2010, 08:40 AM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
badriinvenkat,

Since installing GCC into Mint is the intent of this thread (and the title) then perhaps if that task is now accomplished, it would be good to mark this thread [SOLVED] using the Thread Tools menu near the top of the thread.

Then, read the documentation included with the software you wish to compile and install (usually a README file, an INSTALL file, etc..), and follow the directions. If you have difficulties compiling the software and installing it, create a new thread, and include in its title the name of the software, and that you are having trouble compiling it on Mint.

Best regards.
 
1 members found this post helpful.
Old 07-30-2010, 08:44 AM   #10
badriinvenkat
Member
 
Registered: Jul 2010
Posts: 39

Original Poster
Rep: Reputation: 15
thanks for u r info.....sorry for not following rules
 
Old 07-30-2010, 08:46 AM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
It's quite all right - it's just that it will keep two different topics separate, and that helps others find your threads easily when they are having the same problems!
 
Old 07-30-2010, 08:53 AM   #12
badriinvenkat
Member
 
Registered: Jul 2010
Posts: 39

Original Poster
Rep: Reputation: 15
yaa i understand....what if i need some info regarding the problem i mentioned above???
 
Old 07-30-2010, 09:00 AM   #13
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Well, you maybe could change the title of this thread, to something like:

"Help compiling/installing <some application> on Linux Mint"

Then you could continue in this thread, and it would make sense. You'd need to un-mark this one SOLVED.

Or, just leave this thread as is, and if you need to, start a new one for help with compiling & installing..
 
Old 07-30-2010, 09:05 AM   #14
badriinvenkat
Member
 
Registered: Jul 2010
Posts: 39

Original Poster
Rep: Reputation: 15
thank you so much mod....i will start a new thread...
 
  


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
installing Xampp on Linux Mint 7 kukutatu Linux - Newbie 1 06-05-2010 03:37 AM
Problem installing Linux Mint 9 NeilG Linux - Newbie 3 05-30-2010 06:25 PM
Installing Programs, How do I do that in Linux Mint? GypsyPants Linux - Newbie 6 05-03-2009 05:59 PM
installing linux mint smiffyuk Linux - Newbie 10 08-19-2008 05:18 AM
re installation of grub in Linux mint after installing xp over mint sampad.sarangi General 1 01-15-2008 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 08:23 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
Open Source Consulting | Domain Registration