From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dave Pawson" Newsgroups: gmane.emacs.help Subject: Re: Building 22.1, on Ubuntu Date: Sun, 9 Sep 2007 10:47:46 +0100 Message-ID: <711a73df0709090247x138212cdne9d235e96d691c6@mail.gmail.com> References: <85ejh9xz66.fsf@lola.goethe.zz> <711a73df0709080354p31c2c381oe53c1426e89d2db8@mail.gmail.com> <87odgch6xr.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189333260 27569 80.91.229.12 (9 Sep 2007 10:21:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 9 Sep 2007 10:21:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 09 20:20:47 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IUQtH-00069w-4C for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Sep 2007 19:48:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUJOu-0002GP-UP for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Sep 2007 05:48:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUJOP-00027b-P8 for help-gnu-emacs@gnu.org; Sun, 09 Sep 2007 05:47:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUJOP-00026M-23 for help-gnu-emacs@gnu.org; Sun, 09 Sep 2007 05:47:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUJOO-00025u-9f for help-gnu-emacs@gnu.org; Sun, 09 Sep 2007 05:47:48 -0400 Original-Received: from rv-out-0910.google.com ([209.85.198.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUJON-00007W-PI for help-gnu-emacs@gnu.org; Sun, 09 Sep 2007 05:47:48 -0400 Original-Received: by rv-out-0910.google.com with SMTP id c27so716117rvf for ; Sun, 09 Sep 2007 02:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Jx8+ZhmJUDZOoVyzgaINYH7C1MOP3UrnXSxEWb5zMC8=; b=CIRrHinHZg2ROwbygcIDOi3WOmGrxg6rwawLovmrQryVOfWLTpSvZKa0ayNMCeWK1SG4nHqV4fLCO2qlvSJLjJW90b7Rq0IvHrTRIXsb1wrW+pN4WeXZ81qNIoSSAkNMXbaZBPPv/xpUY+TZwUV6xtKZrjESOk39owSKSHz61Yg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NoIgTMkrp48YbUAYjtMr3xNdUDl2ovK7EswDUA2YzjoQMuFEM6K5RqA38I4flQdtHbF8j4NLeuVoq0ZxQ6h7HrTogYDjlpsRUmyZXIdfBL1mPmprkQnc6ta6ZLHN2mxHX6Y4JH/y/9e+Qa42txU/EdJx788l4/VoTwNkNwhWevc= Original-Received: by 10.141.90.17 with SMTP id s17mr1434134rvl.1189331266546; Sun, 09 Sep 2007 02:47:46 -0700 (PDT) Original-Received: by 10.141.3.17 with HTTP; Sun, 9 Sep 2007 02:47:46 -0700 (PDT) In-Reply-To: <87odgch6xr.fsf@lion.rapttech.com.au> Content-Disposition: inline X-Detected-Kernel: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47391 Archived-At: On 09/09/2007, Tim X wrote: > While this is all correct and sound advice, I doubt it will be useful for > Dave as it will require understanding that would appear to be way past his > level at present (this is not meant to be a harsh or negative criticism). Quite true. I've used ./configure; make install before, but if it failed, the package wasn't installed. Period. Just that emacs is worth the effort. ..... summarised as rtfm. Yes Tim. Agreed. But kindly said. "However, it really seems that the OP isn't doing the minimum sensible things, such as reading the documentation." For which I'm sorry. This thread is far too long . It's Sunday, I'm quiet so I'll go do some reading. Maybe even re-install the OS from scratch and start again. Dave, if your choice is either build from sources or revert back to emacs 21, my question would be why not use the available emacs 22 debian package and save yourself the headaches? For the same reason it doesn't work from source Tim. Ubuntu seemingly must fit on a single CD, so the packages that I need to run http://packages.ubuntu.com/feisty-backports/editors/emacs22 are quite likely the same. I tried it... and it failed. /me Wonder if my 'trying it' was simply trying it as root without X support, i.e. it would fail regardless. Also note that switching to another distro won't help - you have the same issues on nearly all GNU Linux distros. Most distros only install the stuff required to run programs, not the stuff required to build them. Its assumed that anyone who is building software will know which development libraries they need to install. Last time I used RedHat, they also used the libxyz and libxyz-dev type convention with their RPMs. This is not a ubuntu or debian specific issue (though package names can vary slightly). I came from Fedora Core 6/7. There, since they are, on principle, ahead of the game, and use a full 6 CD install, emacs is currently 22.1, so I've never had to do this previously for emacs. OK, I've been spoiled. /configure --with-x-toolkit=gtk \ --with-sound=yes --prefix=/usr/local however, I think the default x-toolkit setting is now gtk, so it should not be required and the default install prefix is /usr/local, so that one probably isn't required either. I like to be explicit, which is why I include them. emacs has sound! Sheesh. Tim, I think you're wrong about the latter though. When I built prior to having --with-x-toolkit=gtk, I wasn't offered anything. I guess the default is nox? I'll stand corrected on that, but that's what I found. Note that if your building from CVS, for the first build, you need make bootstrap. See INSTALL-CVS I wondered what that 'make bootstrap' was all about. It produced dozens of warnings. Yes Tim, I'll rtfm :-) X uses a 'magic cookie' to control access to the X display. Essentially, you have to have this cookie (usually stored in .Xauthority in order to write to access the display. If you run emacs and it cannot open the X display, it will run in text mode. I think its generally a bad idea to build and test software as root if its not required. I always build emacs as a normal user and test it as that user. I only switch to root to run make install as that process needs root privs to write to /usr/local. Thanks for the full story Tim. IMHO this is somethat that needs to be in red, in the install document. Your key advice there seems to be build and test as a normal user. I guess there's no reason not to. Then switch to root for the install. Not knowing other distro's, I wonder if Fedora is odd in allowing X from root. I have always done su - to do root based tasks. Ubuntu is odd to me in insisting on no root user (or password, at least). I guess I'd have finished in half the time had I been testing as a normal user. Sigh. I'm always amazed at how, in this day of open source, people will download software from some unknown/untrusted source and then build and run it as root for the first time. I guess I've been lucky for the last 20 years Tim. I only judge the source, be it a person with a floppy or a website. Many thanks Tim. And points taken. regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk