zoukankan      html  css  js  c++  java
  • linux 源码安装emacs24.4

    1、从官网下载源码 emacs-24.4.tar.gz


    2、解压后,依照INSTALL进行安装
    3-1、生成配置文件

    emacs-24.4$ ./configure

    遇到的问题1:

    configure: error: The following required libraries were not found:
        libXpm libjpeg libgif/libungif libtiff
    Maybe some development libraries/packages are missing?
    If you don't want to link with them give
        --with-xpm=no --with-jpeg=no --with-gif=no --with-tiff=no
    as options to configure

    解决办法:
    1)到 http://www.x.org/releases/current/src/lib/
    下载 libXpm-3.5.10.tar.bz2
    解压后进入其根目录并依次执行

    libXpm-3.5.10$ ./configure
    libXpm-3.5.10$ make
    libXpm-3.5.10$ sudo make install


    2)到 http://www.ijg.org/
    下载 jpegsrc.v9a.tar.gz
    解压后进入其根目录并依次执行

    jpeg-9a$ ./configure
    jpeg-9a$ make
    jpeg-9a$ sudo make install

    3)到 http://sourceforge.net/projects/giflib/
    下载 giflib-5.1.0.tar.bz2
    解压后进入其根目录并依次执行

    giflib-5.1.0$ ./configure
    giflib-5.1.0$ make
    giflib-5.1.0$ sudo make install

    4)到 http://download.osgeo.org/libtiff/
    下载 tiff-4.0.3.tar.gz
    解压后进入其根目录并依次执行

    tiff-4.0.3$ ./configure
    tiff-4.0.3$ make
    tiff-4.0.3$ sudo make install

    以上问题都解决后再次生成配置文件

    emacs-24.4$ ./configure

    4-1、编译

    emacs-24.4$ make

    遇到的问题1:

    ./temacs: error while loading shared libraries: libtiff.so.5: cannot open shared object file: No such file or directory
    make[1]: *** [bootstrap-emacs] Error 1

    问题解决:
    1)提示找不到libtiff,但我们之前已经安装过了,这里查看一下其位置(发现在/usr/local/lib下)

    $ whereis libtiff

    libtiff: /usr/local/lib/libtiff.so /usr/local/lib/libtiff.la /usr/local/lib/libtiff.a

    2)切换成root 用户执行以下命令

    # echo "/usr/local/lib" >> /etc/ld.so.conf
    # ldconfig

    这里说一下ldconfig的作用:其作用主要是在默认搜寻目录(/lib和/usr/lib)以及动态库配置文件/etc/ld.so.conf内所列的目录下, 搜索出可共享的动态链接库(格式如lib*.so*), 进而创建出动态装入程序(ld.so)所需的连接和缓存文件。缓存文件默认为/etc/ld.so.cache,,此文件保存已排好序的动态链接库名字列表。

    4-2、继续编译

    emacs-24.4$ make


    5、安装

    emacs-24.4$ sudo make install


    6、Enjoy it.

  • 相关阅读:
    app启动优化
    CountDownLatch妙用
    匿名内部类为什么有可能造成内存泄漏
    单例模式为什么有可能造成内存泄漏
    左移右移记不住怎么办
    说一说ThreadLocal
    对framework层的一些看法
    双重锁单例
    JMM总结
    关于lock前缀
  • 原文地址:https://www.cnblogs.com/aqing1987/p/4210500.html
Copyright © 2011-2022 走看看