Linux下截图软件Scrot的安装
Linux下截图软件Scrot的安装
scrot的安装
系统CentOS 6.2 i386
- # wget http://fossies.org/unix/privat/scrot-0.8.tar.gz
- # tar xvf scrot-0.8.tar.gz
- # cd scrot-0.8
- # ./configure 下面出现错误
[root@localhost scrot-0.8]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for giblib-config... no
checking for giblib - version >= 1.2.3... no
*** The giblib-config script installed by giblib could not be found
*** If giblib was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GIBLIB_CONFIG environment variable to the
*** full path to giblib-config.
configure: error: Cannot find giblib: Is giblib-config in the path?
提示缺少giblib
- # wget http://linuxbrit.co.uk/downloads/giblib-1.2.4.tar.gz
- 或者是下面的链接
- # wget http://pkgs.Fedoraproject.org/repo/pkgs/giblib/giblib-1.2.4.tar.gz/c810ef5389baf24882a1caca2954385e/giblib-1.2.4.tar.gz
- # tar zxvf giblib-1.2.4.tar.gz
- # cd giblib-1.2.4
- #./configure 继续提示错误
checking whether to build static libraries... yes
checking for f95 option to produce PIC... -fPIC
checking if f95 PIC flag -fPIC works... yes
checking if f95 supports -c -o file.o... yes
checking whether the f95 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking whether build environment is sane... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking if malloc debugging is wanted... no
checking for imlib2-config... no
checking for imlib2 - version >= 1.0.0... no
*** The imlib2-config script installed by imlib2 could not be found
*** If imlib2 was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the IMLIB2_CONFIG environment variable to the
*** full path to imlib2-config.
configure: error: Cannot find imlib2: Is imlib2-config in the path?
提示缺少imlib2,遂下载安装之,则OK。
安装顺序记录如下,
- ######################imlib########################
- wget http://sourceforge.net/projects/enlightenment/files/imlib2-src/1.4.5/imlib2-1.4.5.tar.gz/download
- tar xvf imlib2-1.4.5.tar.gz
- cd imlib2-1.4.5
- ./configure
- make
- make install
- ########################giblib#####################
- wget http://linuxbrit.co.uk/downloads/giblib-1.2.4.tar.gz
- cd giblib-1.2.4
- ./configure
- make
- make install
- ########################scrot#######################
- wget http://fossies.org/unix/privat/scrot-0.8.tar.gz
- tar xvf scrot-0.8.tar.gz
- cd scrot-0.8
- ./configure
- make
- make install
- #########################over#####################
安装完毕,问题还未结束
- #scrot 运行scrot命令,如下提示libgiblib的库没有找到
- scrot: error while loading shared libraries: libgiblib.so.1: cannot open shared object file: No such file or directory
- 在系统里面寻找libgiblib库文件
- #find /usr -name libgiblib.so.1
- /usr/local/lib/libgiblib.so.1
- #cat /etc/ld.so.conf 查看当前库加载路径
- include ld.so.conf.d/*.conf
- #echo "/usr/local/lib" >> /etc/ld.so.conf 添加库路径
- #ldconfig 加载库文件后scrot正常使用来
- #scrot --help 查看scrot的帮助信息
- Usage : scrot [OPTIONS]... [FILE]
- Where FILE is the target file for the screenshot.
- If FILE is not specified, a date-stamped file will be dropped in the
- current directory.
- See man scrot for more details
- -h, --help display this help and exit
- -v, --version output version information and exit
- -b, --border When selecting
- ……
|
评论暂时关闭