linux 编译安装emacs和安装spacemacs

下载

wget http://mirrors.ustc.edu.cn/gnu/emacs/emacs-25.1.tar.xz
tar xvf emacs-25.1.tar.xz

编译安装

./configure --prefix=/usr/local/emacs

  • 报错
configure: error: You seem to be running X, but no X development libraries
were found.  You should install the relevant development files for X
and for the toolkit you want, such as Gtk+ or Motif.  Also make
sure you have development files for image handling, i.e.
tiff, gif, jpeg, png and xpm.
If you are sure you want Emacs compiled without X window support, pass
  --without-x
to configure.

sudo aptitude install libgtk2.0-dev
注意可能会遇到apt-get解决不了的依赖问题,所以用到aptitude
sudo apt-get install libXpm-dev libjpeg-dev libgif-dev libtiff5-dev
make -j4
sudo make install

把emacs的安装目录加入环境变量

编辑自己home文件夹下的.profile文件
vim /home/bboysoul/.profile
添加下面这行
export PATH="$PATH:/usr/local/emacs/bin"

然后执行
source /home/bboysoul/.profile

创建emacs的图标

进入
cd /usr/local/emacs/share/applications
把下面这个文件复制到
cp emacs.desktop /usr/share/applications/
之后注销重新登录一下就可以找到图标了

安装spacemacs

git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值