Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
I am trying to learn how to compile from source and having some trouble figuring it out. Hopefully one of you can help steer me in the right direction. Here ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! bonesTdog's Avatar
    Join Date
    Jan 2011
    Location
    Atlanta, GA
    Posts
    91

    Need help compiling emacs from source


    I am trying to learn how to compile from source and having some trouble figuring it out. Hopefully one of you can help steer me in the right direction. Here is what I have done on my Ubuntu 32 bit 11.04 minimal installationownloaded emacs-23.4.tar.gz to ~/home/tod/Compile/ - then from that directory ran the following commands:tar -zxvf emacs-23.4.tar.gz./configuresudo make - last line was make: *** [src] Error 2sudo make install - same last line as aboveAfter everything was finished I could not find where it may have installed.whereis emacs returns just "emacs:"Any help?

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,488
    Quote Originally Posted by bonesTdog View Post
    I am trying to learn how to compile from source and having some trouble figuring it out. Hopefully one of you can help steer me in the right direction. Here is what I have done on my Ubuntu 32 bit 11.04 minimal installationownloaded emacs-23.4.tar.gz to ~/home/tod/Compile/ - then from that directory ran the following commands:tar -zxvf emacs-23.4.tar.gz./configuresudo make - last line was make: *** [src] Error 2sudo make install - same last line as aboveAfter everything was finished I could not find where it may have installed.whereis emacs returns just "emacs:"Any help?
    Code:
    make: *** [src] Error 2
    The error 2 indicates the make script failed. Did the ./configure step complete with no errors?
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    Conkybots: Interactive plugins for your Conkys!

  3. #3
    Just Joined! bonesTdog's Avatar
    Join Date
    Jan 2011
    Location
    Atlanta, GA
    Posts
    91
    I ran ./configure again to confirm and I don't see any errors. Everything flies by the screen pretty quickly but I didn't see anything concerning and the final page of the process all looks to be in order. All the questions : does Emacs use -**** all end in no. All the config.status: creating xxxx/makefile all appear to have completed successfully. The final line is creating src/Makefile.

  4. #4
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    To compile software, I've found it necessary to have kernel headers and other requirements installed.
    I think that to do this in Ubuntu, you need to do:
    Code:
    sudo apt-get install build-essential
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  5. #5
    Just Joined! bonesTdog's Avatar
    Join Date
    Jan 2011
    Location
    Atlanta, GA
    Posts
    91
    Gave that a shot but didn't help. Here is a bit more info on the error code:
    make[1]: Entering directory /home/tod/Compile/emacs-23.4/lib-src
    make[1]: *** No rule to make target '/usr/lib/crt1.0', needed by 'temacs'. Stop.
    make[1]: leaving directory
    make: *** [src] Error 2

    Maybe that helps more?

  6. #6
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    hoping not to make things worse, I did come across something that looked familiar:
    Code:
    sudo apt-get update && sudo apt-get upgrade
    Code:
    sudo apt-get install build-essential linux-headers-$(uname -r)
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  7. #7
    Just Joined! bonesTdog's Avatar
    Join Date
    Jan 2011
    Location
    Atlanta, GA
    Posts
    91
    Ran all those above but everything was already up to date, so no change.

  8. #8
    Just Joined! bonesTdog's Avatar
    Join Date
    Jan 2011
    Location
    Atlanta, GA
    Posts
    91
    Well, with a little more research I see a variety of the same error report online as well as some bug reports but haven't been able to figure out the fix. Maybe I will try compiling something different...

    Any suggestions on other programs to install to practice compiling from source? Vi and nano are already installed.

  9. #9
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,488
    It looks like you need to apply a patch see here
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    Conkybots: Interactive plugins for your Conkys!

  10. #10
    Just Joined! bonesTdog's Avatar
    Join Date
    Jan 2011
    Location
    Atlanta, GA
    Posts
    91
    I saw the patch yesterday, but I have no idea what to do with it or how to apply it. Any direction would be greatly appreciated.

    I don't know if this was the right strategy or not, but I simply deleted all of the files that were created when I extracted the tarball, so I will need to start from scratch. (no big deal) I tried the same process with an older version of emacs and had the same results. I have no idea if the multiple failed "make and make installs" installed files elsewhere that I should be concerned about. Feeling like I am in a bit over my head...

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •