我刚从Windows切换到Ubuntu。现在,我正在Ubuntu14.04上安装GRASGIS7.0 (beta,即将稳定)软件包,按照给出的这里说明。但我发现了这个错误
grass70 : Depends: grass70-core but it is not going to be installed
grass70-gui : Depends: grass70-core but it is not going to be installed
E: Unable to correct problems, you have held broken packages.我不知道如何解决这个问题。任何帮助都将不胜感激。谢谢
我还尝试了以下说明,但没有成功:
sudo add-apt-repository ppa:grass/grass-stable
sudo apt-get update
sudo apt-get -f install
sudo apt-get clean
sudo apt-get -f install
sudo apt-get install grass70 grass70-gui发布于 2014-09-21 02:09:35
不幸的是,GRASS 7.0的开发版本包并不在现在形状很好中。我建议从源代码中编译GRASS GIS。(编辑:GRASGIS7.0发布了,所以情况不同;这在2014年9月是有效的,但无论如何编译可能是有利的。)
您需要安装编译工具和依赖项,使用SVN下载源代码,配置、编译和安装。
这里描述了这些步骤:
http://grasswiki.osgeo.org/wiki/Compile_和_安装_Ubuntu
请阅读以下章节:
以下是实际步骤(部分是我的,部分是从wiki页面提取的):
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install \
build-essential \
flex make bison gcc libgcc1 g++ cmake ccache \
python python-dev \
python-opengl \
python-wxversion python-wxtools python-wxgtk2.8 \
python-dateutil libgsl0-dev python-numpy \
wx2.8-headers wx-common libwxgtk2.8-dev libwxgtk2.8-dbg \
libwxbase2.8-dev libwxbase2.8-dbg \
libncurses5-dev \
zlib1g-dev gettext \
libtiff-dev libpnglite-dev \
libcairo2 libcairo2-dev \
sqlite3 libsqlite3-dev \
libpq-dev \
libreadline6 libreadline6-dev libfreetype6-dev \
libfftw3-3 libfftw3-dev \
libboost-thread-dev libboost-program-options-dev liblas-c-dev \
resolvconf \
libjasper-dev \
subversion \
libav-tools libavutil-dev ffmpeg2theora \
libffmpegthumbnailer-dev \
libavcodec-dev \
libxmu-dev \
libavformat-dev libswscale-dev \
checkinstall \
libglu1-mesa-dev libxmu-dev更多依赖关系:
sudo apt-get install libproj-dev
sudo apt-get install libgeos-dev
sudo apt-get install libgdal-dev
sudo apt-get install python-gdal导航到希望编译代码和GRASS的目录(例如~/dev或~/bin或/usr/local/src或/opt/,.)。
然后,要获得7.0发行版的最新代码,请使用:
svn co https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0 grass70_release转到svn创建的目录:
cd grass70_release配置:
export CFLAGS="-O2 -Wall"
export CXXFLAGS="-O2 -Wall"
export LDFLAGS="-s"
./configure \
--enable-largefile=yes \
--with-nls \
--with-cxx \
--with-readline \
--with-pthread \
--with-proj-share=/usr/share/proj \
--with-geos=/usr/bin/geos-config \
--with-wxwidgets \
--with-cairo \
--with-opengl-libs=/usr/include/GL \
--with-freetype=yes --with-freetype-includes="/usr/include/freetype2/" \
--with-postgresql=yes --with-postgres-includes="/usr/include/postgresql" \
--with-sqlite=yes \
--with-mysql=yes --with-mysql-includes="/usr/include/mysql" \
--with-odbc=no \
--with-liblas=yes --with-liblas-config=/usr/bin/liblas-config汇编:
make -j2-j后的数字是应该用于编译的核数(这可能会加快编译速度,不会影响编译结果)。
安装:
sudo make install
sudo ldconfig您可以选择不安装,但是必须使用到源代码目录(../grass70_release)、子目录bin、文件grass70的完整路径运行GRASS。
若要稍后更新源代码,请使用:
svn up然后再编译。
有时,您需要重新编译所有的东西,所以请这样做
make distclean然后从配置开始,然后继续编译和安装。
发布于 2014-06-25 11:50:15
安装具有突触包的草70核心,它将工作。
发布于 2016-03-06 20:34:16
2016年3月,我安装了Ubuntu软件中心的“地理资源分析支持系统(GRASS )”(版本6.4.3,不是7,但可能很有用)。
https://askubuntu.com/questions/474767
复制相似问题