歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux下截圖軟件Scrot的安裝

Linux下截圖軟件Scrot的安裝

日期:2017/2/28 15:47:10   编辑:Linux教程

scrot的安裝

系統CentOS 6.2 i386

  1. # wget http://fossies.org/unix/privat/scrot-0.8.tar.gz
  2. # tar xvf scrot-0.8.tar.gz
  3. # cd scrot-0.8
  4. # ./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

  1. # wget http://linuxbrit.co.uk/downloads/giblib-1.2.4.tar.gz
  2. 或者是下面的鏈接
  3. # wget http://pkgs.Fedoraproject.org/repo/pkgs/giblib/giblib-1.2.4.tar.gz/c810ef5389baf24882a1caca2954385e/giblib-1.2.4.tar.gz
  4. # tar zxvf giblib-1.2.4.tar.gz
  5. # cd giblib-1.2.4
  6. #./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。

安裝順序記錄如下,

  1. ######################imlib########################
  2. wget http://sourceforge.net/projects/enlightenment/files/imlib2-src/1.4.5/imlib2-1.4.5.tar.gz/download
  3. tar xvf imlib2-1.4.5.tar.gz
  4. cd imlib2-1.4.5
  5. ./configure
  6. make
  7. make install
  8. ########################giblib#####################
  9. wget http://linuxbrit.co.uk/downloads/giblib-1.2.4.tar.gz
  10. cd giblib-1.2.4
  11. ./configure
  12. make
  13. make install
  14. ########################scrot#######################
  15. wget http://fossies.org/unix/privat/scrot-0.8.tar.gz
  16. tar xvf scrot-0.8.tar.gz
  17. cd scrot-0.8
  18. ./configure
  19. make
  20. make install
  21. #########################over#####################

安裝完畢,問題還未結束

  1. #scrot 運行scrot命令,如下提示libgiblib的庫沒有找到
  2. scrot: error while loading shared libraries: libgiblib.so.1: cannot open shared object file: No such file or directory
  3. 在系統裡面尋找libgiblib庫文件
  4. #find /usr -name libgiblib.so.1
  5. /usr/local/lib/libgiblib.so.1
  6. #cat /etc/ld.so.conf 查看當前庫加載路徑
  7. include ld.so.conf.d/*.conf
  8. #echo "/usr/local/lib" >> /etc/ld.so.conf 添加庫路徑
  9. #ldconfig 加載庫文件後scrot正常使用來
  10. #scrot --help 查看scrot的幫助信息
  11. Usage : scrot [OPTIONS]... [FILE]
  12. Where FILE is the target file for the screenshot.
  13. If FILE is not specified, a date-stamped file will be dropped in the
  14. current directory.
  15. See man scrot for more details
  16. -h, --help display this help and exit
  17. -v, --version output version information and exit
  18. -b, --border When selecting
  19. ……
Copyright © Linux教程網 All Rights Reserved