使用vagrant安装ghostscript

使用vagrant安装ghostscript,vagrant,ghostscript,Vagrant,Ghostscript,我想在创建我的流浪环境时安装ghostscript,但我不知道如何实现这一点。我的设置脚本如下所示: #!/usr/bin/env bash sudo apt-get update sudo apt-get install -y python-software-properties sudo add-apt-repository -y ppa:ondrej/php5 sudo apt-get update sudo apt-get install -y wget php5 apache

我想在创建我的流浪环境时安装ghostscript,但我不知道如何实现这一点。我的设置脚本如下所示:

#!/usr/bin/env bash

sudo apt-get update

sudo apt-get install -y python-software-properties

sudo add-apt-repository -y ppa:ondrej/php5

sudo apt-get update

sudo apt-get install -y wget php5 apache2

# Apache stuff
sudo a2enmod rewrite

rm -rf /var/www

ln -fs /vagrant /var/www

sudo service apache2 restart

在shell配置脚本中,必须定义以下命令

wget http://downloads.ghostscript.com/public/ghostscript-9.10.tar.bz2

tar xjf ghostscript-9.10.tar.bz2 

cd ghostscript-9.10

rm -rf zlib && ./configure --prefix=/usr --disable-compile-inits \ --enable-dynamic --with-system-libtiff && make

make so

su root

make install

gs -v
这基本上是:

  • 下载软件包
  • 提取内容
  • 编译重影脚本
  • 安装重影脚本
  • 检查它是否安装正确
  • 上面的解释已经发送给你的方式来安装它