LinuxQuestions.org
Visit Jeremy's Blog.
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-27-2007, 04:19 PM   #1
Tunene
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Rep: Reputation: 0
Help !!! Need to install emacs on Ubuntu


Pls I am new to linux and I am currently running K-Ubuntu 7.10; as I am trying to run configure script for emacs-21.4 then, I have the following error:
loading cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking for gcc... /usr/bin/gcc
checking whether the C compiler (/usr/bin/gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
So I am stuck and I don't know what else to do.
Tunene.
 
Old 10-27-2007, 04:32 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Why are you trying to install Emacs from source? Why not just install it from Ubuntu's repositories? "sudo apt-get install emacs" should do it.
 
Old 10-27-2007, 05:07 PM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Tunene, In most Linux distributions there are large libraries of pre-built software which are available to install with very little hassle. This is usually handled via some sort of "package management" system, which does installation, uninstallation, updates and so on.

In the case of Ubuntu, there are a few different front ends to the package management system. There is a graphical program called "Synaptic", which is available from the System -> Administration menu at the top of the screen.

Inside Synaptic, click the search button from the toolbar. Search for emacs. You will get a lot of results in the top pane on the right side of the window. Scroll down until you see a line for a package called simply "emacs". Click on the box at the left of this line, and select "mark for installation" from the menu which pops up.

You will then see a window saying something like "Mark additional required changes". Click the "Mark" button.

You can select lots of different programs using this procedure.

When you've selected all the new software you want to install, click the "Apply" button on the tool bar. You will see a dialog which says, "Apply the following changes?". Click the "Apply" button in the dialog and the software you requested will be downloaded and installed for you.

The instruction which Nylex posted is a handy way to accomplish much the same thing from a terminal - handy if you are in the habbit of using the terminal, or are logged into a machine remotely using ssh. Both Synaptic and apt-get are interfaces to the same underlying package management system.

Whenever you want to install software, you should search for packages like this first. Installting from source is a big pain in the backside, and is rarely necessary - the repositories are very large.

In Synaptic's Settings [menu] -> Repositories dialog, you can enable extra repositories containing many packages which are created and maintained by the Ubuntu community. This gives you access to something like 23,000 packages in total!
 
Old 10-28-2007, 03:55 PM   #4
Tunene
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Help !!! Need to install emacs on Ubuntu

Well thanks guys.
When I tried sudo apt-get, the reply was that I should enable something called "Universe" which I don't know how to do it.
 
Old 10-28-2007, 04:23 PM   #5
Tunene
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Help!!! Need to install emacs on Ubuntu

Also, I just realized that there is no "Synaptic tool" under system administrator tool; what I have is the "Adept Manager", but this doesn't has "emacs" listed.
 
Old 10-28-2007, 04:34 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
If I am not mistaken, Adept and Synaptic both act as front-ends for apt-get. So you should be able to add repositories in one of those and have them work with apt-get.
If you don't like Adept, you can at least use it to install Synaptic.

You can also browse thru /etc and find the file that lists the repositories. On my system, it's /etc/apt/sources.list
 
Old 10-28-2007, 04:39 PM   #7
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Universe is a repository which by the sounds of it contains emacs. You can enable it using Synaptic as described in the last paragraph of my previous post. In the "Ubuntu Software" tab, check next to "Community maintained Open Source software (universe)".
 
Old 10-31-2007, 11:58 AM   #8
Tunene
LQ Newbie
 
Registered: Oct 2007
Posts: 11

Original Poster
Rep: Reputation: 0
Help!!! Need to install emacs on Ubuntu

Well thanks everyone I finally got emacs and other packages installed after I enabled "universe" and "multiverse" through Adept Manager; then I run sudo apt-get install emacs21 ... then it works right.
 
  


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 emacs and gcc in ubuntu without a network connection nunya_biniss Linux - Newbie 1 10-05-2007 02:41 PM
emacs and gnus user on ubuntu and slackware imputerate LinuxQuestions.org Member Intro 0 08-25-2007 09:33 PM
Alt no longer META key when using in-terminal option of Emacs (emacs -nw) frznchckn Linux - Software 1 06-02-2007 02:41 AM
emacs on ubuntu weird boxes drawde83 Linux - Software 3 06-01-2007 03:24 AM
How do I install emacs on ubuntu with apt-get? sureshot324 Linux - Software 2 01-06-2006 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:30 AM.

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