Positioning of CRT *. O during Emacs installation in ubuntu12.04

Source: Internet
Author: User

I can't wait to install ubutnu12.04 in my new brain.
Later, I wanted to learn how to use Emacs. The result was loaded for two days. A few days ago, due to a problem with the G ++ compiler, it seems that the GCC compiler of this version does not have the G ++ function installed. Later, I added some sources and found some miscellaneous commands on the Internet, I forgot what the command is. It means that sudo apt-Get install build-essential is successfully executed.
It is not expected to be executed. /configure -- prefix =/usr/local/emacs23 -- enable-font-backend -- With-xft -- With-FreeType -- With-X-Toolkit = GTK and continue to report an error, no CRT is found *. o file, let you use the -- with-CRT-Dir command. I checked the configure source code, and it looks like we want you to solve it using -- With-CRT-Dir =... (PATH.

The procedure is as follows:
Create a soft link for CRT *. o
During Emacs installation,/usr/lib/CRT * is required *. O content, but not all CTR *. O is located in the/usr/lib/directory, so you need to create other CRT * in/usr/lib *. O soft link.
Use

Locate crt1.o

Command to locate the location of the crt1.o file. My files are located in the/usr/lib/i386-linux-gnu/directory listing all CRT *. O files
Ll/usr/lib/i386-linux-gnu/* CRT *. o
Create a soft link that uses the ln command to create these files to/usr/lib/, for example:

Ln-S/usr/lib/i386-linux-gnu/crt1.o/usr/lib/crt1.o

Note that here is i386, and some of the above content is found on the Internet, so it is not very similar to my computer. It means it anyway. I use x86_64 to find the path myself.

Yes... However, the installation path is in/usr/local/emacs23 as described earlier.
The Emacs cannot be started directly.
So add your installation path
The default installation path of emacs23 is/usr/local, which is split into several blocks, which are stored in the following directories:
/Usr/local/bin
/Usr/local/share/Emacs/version/LISP
/Usr/local/share/Emacs/version/etc
/Usr/local/libexec/Emacs/version/configuration-name
/Usr/local/info
/Usr/local/man/Man1
If you want to install it in a directory, use -- prefix =/yourpath in configure, but do some link in/usr/local/bin.
So far, emacs cannot be started when you directly enter Emacs in the terminal because/usr/local/emacs23/bin is not in the PATH variable.
CD/usr/local/bin
Ln-S/usr/local/emacs23/bin/*./(create a symbol link)
Enter Emacs in the terminal to start Emacs.



Oh, oh, oh, great!


Oh, my God. It's. Go to bed now! The first time I spoke under the Ubuntu interface. I don't care much about it. Welcome to the bricks.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.