文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>在CentOS中安装htop

在CentOS中安装htop

时间:2010-09-03  来源:hgdxzhj

在CentOS中安装htop

  htop是一个第三方的进程查看器,与linux传统的top相比,htop更加人性化。它可让用户交互式 操作,支持颜色主题,可横向或纵向滚动浏览进程列表,并支持鼠标操作。   htop安装 htop官网源码下载 http://sourceforge.net/projects/htop/   解压tar.gz文件 [root@localhost ftpdata]# mkdir /htop [root@localhost ftpdata]# ls -l 总用量 424 -rw-------  1 ftpuser ftpuser 428061  6月 17 04:01 htop-0.8.3.tar.gz [root@localhost ftpdata]# tar -zxvf htop-0.8.3.tar.gz  -C /htop   源码编译 [root@localhost htop-0.8.3]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... 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 ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking whether gcc and cc understand -c and -o together... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for g77... g77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether g77 accepts -g... yes checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc 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 if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ 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 appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for g77 option to produce PIC... -fPIC checking if g77 PIC flag -fPIC works... yes checking if g77 static flag -static works... yes checking if g77 supports -c -o file.o... yes checking whether the g77 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 for ceil in -lm... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for ANSI C header files... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes checking for pid_t... yes checking for uid_t in sys/types.h... yes checking whether closedir returns void... no checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking return type of signal handlers... void checking whether lstat dereferences a symlink specified with a trailing slash... yes checking whether stat accepts an empty string... no checking for memmove... yes checking for strncasecmp... yes checking for strstr... yes checking for strdup... yes checking whether gcc -std=c99 option works... yes checking for refresh in -lncurses... yes checking for curses.h... (cached) yes checking for /proc/stat... yes checking for /proc/meminfo... yes checking for syscall... yes checking sys/syscall.h usability... yes checking sys/syscall.h presence... yes checking for sys/syscall.h... yes checking for unistd.h... (cached) yes checking for __NR_sched_setaffinity... yes checking for __NR_sched_getaffinity... yes checking for PLPA building mode... included checking for PLPA config prefix... plpa-1.1 checking for PLPA symbol prefix... plpa_ checking whether to build PLPA executables... no configure: creating ./config.status config.status: creating plpa-1.1/Makefile config.status: creating plpa-1.1/src/Makefile config.status: creating Makefile config.status: creating htop.1 config.status: creating config.h config.status: config.h is unchanged config.status: creating plpa-1.1/src/plpa_config.h config.status: plpa-1.1/src/plpa_config.h is unchanged config.status: creating plpa-1.1/src/plpa.h config.status: plpa-1.1/src/plpa.h is unchanged config.status: executing depfiles commands   [root@localhost htop-0.8.3]# make make  all-recursive make[1]: Entering directory `/htop/htop-0.8.3‘ Making all in plpa-1.1 make[2]: Entering directory `/htop/htop-0.8.3/plpa-1.1‘ Making all in src make[3]: Entering directory `/htop/htop-0.8.3/plpa-1.1/src‘ make  all-am make[4]: Entering directory `/htop/htop-0.8.3/plpa-1.1/src‘ make[4]: Leaving directory `/htop/htop-0.8.3/plpa-1.1/src‘ make[3]: Leaving directory `/htop/htop-0.8.3/plpa-1.1/src‘ make[3]: Entering directory `/htop/htop-0.8.3/plpa-1.1‘ make[3]: Nothing to be done for `all-am‘. make[3]: Leaving directory `/htop/htop-0.8.3/plpa-1.1‘ make[2]: Leaving directory `/htop/htop-0.8.3/plpa-1.1‘ make[2]: Entering directory `/htop/htop-0.8.3‘ /bin/sh ./libtool --tag=CC   --mode=link gcc -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2   -o htop  htop-AvailableMetersPanel.o htop-CategoriesPanel.o htop-CheckItem.o htop-ClockMeter.o htop-ColorsPanel.o htop-ColumnsPanel.o htop-CPUMeter.o htop-CRT.o htop-DebugMemory.o htop-DisplayOptionsPanel.o htop-FunctionBar.o htop-Hashtable.o htop-Header.o htop-htop.o htop-ListItem.o htop-LoadAverageMeter.o htop-MemoryMeter.o htop-Meter.o htop-MetersPanel.o htop-Object.o htop-Panel.o htop-BatteryMeter.o htop-Process.o htop-ProcessList.o htop-RichString.o htop-ScreenManager.o htop-Settings.o htop-SignalItem.o htop-SignalsPanel.o htop-String.o htop-SwapMeter.o htop-TasksMeter.o htop-TraceScreen.o htop-UptimeMeter.o htop-UsersTable.o htop-Vector.o htop-AvailableColumnsPanel.o htop-AffinityPanel.o htop-HostnameMeter.o htop-OpenFilesScreen.o ./plpa-1.1/src/libplpa_included.la -lncurses -lm mkdir .libs gcc -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -o htop htop-AvailableMetersPanel.o htop-CategoriesPanel.o htop-CheckItem.o htop-ClockMeter.o htop-ColorsPanel.o htop-ColumnsPanel.o htop-CPUMeter.o htop-CRT.o htop-DebugMemory.o htop-DisplayOptionsPanel.o htop-FunctionBar.o htop-Hashtable.o htop-Header.o htop-htop.o htop-ListItem.o htop-LoadAverageMeter.o htop-MemoryMeter.o htop-Meter.o htop-MetersPanel.o htop-Object.o htop-Panel.o htop-BatteryMeter.o htop-Process.o htop-ProcessList.o htop-RichString.o htop-ScreenManager.o htop-Settings.o htop-SignalItem.o htop-SignalsPanel.o htop-String.o htop-SwapMeter.o htop-TasksMeter.o htop-TraceScreen.o htop-UptimeMeter.o htop-UsersTable.o htop-Vector.o htop-AvailableColumnsPanel.o htop-AffinityPanel.o htop-HostnameMeter.o htop-OpenFilesScreen.o  ./plpa-1.1/src/.libs/libplpa_included.a -lncurses -lm make[2]: Leaving directory `/htop/htop-0.8.3‘ make[1]: Leaving directory `/htop/htop-0.8.3‘     [root@localhost htop-0.8.3]# make install make  install-recursive make[1]: Entering directory `/htop/htop-0.8.3‘ Making install in plpa-1.1 make[2]: Entering directory `/htop/htop-0.8.3/plpa-1.1‘ Making install in src make[3]: Entering directory `/htop/htop-0.8.3/plpa-1.1/src‘ make[4]: Entering directory `/htop/htop-0.8.3/plpa-1.1/src‘ test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib" test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include" make[4]: Leaving directory `/htop/htop-0.8.3/plpa-1.1/src‘ make[3]: Leaving directory `/htop/htop-0.8.3/plpa-1.1/src‘ make[3]: Entering directory `/htop/htop-0.8.3/plpa-1.1‘ make[4]: Entering directory `/htop/htop-0.8.3/plpa-1.1‘ make[4]: Nothing to be done for `install-exec-am‘. make[4]: Nothing to be done for `install-data-am‘. make[4]: Leaving directory `/htop/htop-0.8.3/plpa-1.1‘ make[3]: Leaving directory `/htop/htop-0.8.3/plpa-1.1‘ make[2]: Leaving directory `/htop/htop-0.8.3/plpa-1.1‘ make[2]: Entering directory `/htop/htop-0.8.3‘ make[3]: Entering directory `/htop/htop-0.8.3‘ test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"   /bin/sh ./libtool --mode=install /usr/bin/install -c ‘htop‘ ‘/usr/local/bin/htop‘ /usr/bin/install -c htop /usr/local/bin/htop test -z "/usr/local/share/applications" || /bin/mkdir -p "/usr/local/share/applications"  /usr/bin/install -c -m 644 ‘htop.desktop‘ ‘/usr/local/share/applications/htop.desktop‘ test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"  /usr/bin/install -c -m 644 ‘./htop.1‘ ‘/usr/local/share/man/man1/htop.1‘ test -z "/usr/local/share/pixmaps" || /bin/mkdir -p "/usr/local/share/pixmaps"  /usr/bin/install -c -m 644 ‘htop.png‘ ‘/usr/local/share/pixmaps/htop.png‘ make[3]: Leaving directory `/htop/htop-0.8.3‘ make[2]: Leaving directory `/htop/htop-0.8.3‘ make[1]: Leaving directory `/htop/htop-0.8.3‘   htop程序截图如下 [root@localhost htop-0.8.3]# htop
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载