veket官方网站论坛

veket

 找回密码
 要注册
搜索
查看: 9208|回复: 15

[分享] htop直接在veket-5.192上编译成功

[复制链接]
发表于 2010-7-12 12:55 | 显示全部楼层 |阅读模式
http://sourceforge.net/projects/htop/
下载最新版本:
按这里的方法三步就编译成功了:
http://www.lucky8k.com/thread-76250-1-1.html
./configure --prefix=/usr
make
new2dir make install
 楼主| 发表于 2010-7-12 12:56 | 显示全部楼层

我的编译全过程

# ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
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/i486-t2-linux-gnu/bin/ld
checking if the linker (/usr/i486-t2-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i486-t2-linux-gnu/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... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran 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/i486-t2-linux-gnu/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/i486-t2-linux-gnu/bin/ld
checking if the linker (/usr/i486-t2-linux-gnu/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i486-t2-linux-gnu/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/i486-t2-linux-gnu/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 gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/i486-t2-linux-gnu/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: creating plpa-1.1/src/plpa.h
config.status: executing depfiles commands
# make
make  all-recursive
make[1]: Entering directory `/root/veket/htop-0.8.3'
Making all in plpa-1.1
make[2]: Entering directory `/root/veket/htop-0.8.3/plpa-1.1'
Making all in src
make[3]: Entering directory `/root/veket/htop-0.8.3/plpa-1.1/src'
make  all-am
make[4]: Entering directory `/root/veket/htop-0.8.3/plpa-1.1/src'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..     -g -O2 -MT plpa_api_probe.lo -MD -MP -MF .deps/plpa_api_probe.Tpo -c -o plpa_api_probe.lo plpa_api_probe.c
gcc -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT plpa_api_probe.lo -MD -MP -MF .deps/plpa_api_probe.Tpo -c plpa_api_probe.c -o plpa_api_probe.o
mv -f .deps/plpa_api_probe.Tpo .deps/plpa_api_probe.Plo
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..     -g -O2 -MT plpa_dispatch.lo -MD -MP -MF .deps/plpa_dispatch.Tpo -c -o plpa_dispatch.lo plpa_dispatch.c
gcc -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT plpa_dispatch.lo -MD -MP -MF .deps/plpa_dispatch.Tpo -c plpa_dispatch.c -o plpa_dispatch.o
mv -f .deps/plpa_dispatch.Tpo .deps/plpa_dispatch.Plo
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..     -g -O2 -MT plpa_runtime.lo -MD -MP -MF .deps/plpa_runtime.Tpo -c -o plpa_runtime.lo plpa_runtime.c
gcc -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT plpa_runtime.lo -MD -MP -MF .deps/plpa_runtime.Tpo -c plpa_runtime.c -o plpa_runtime.o
mv -f .deps/plpa_runtime.Tpo .deps/plpa_runtime.Plo
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..     -g -O2 -MT plpa_map.lo -MD -MP -MF .deps/plpa_map.Tpo -c -o plpa_map.lo plpa_map.c
gcc -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT plpa_map.lo -MD -MP -MF .deps/plpa_map.Tpo -c plpa_map.c -o plpa_map.o
mv -f .deps/plpa_map.Tpo .deps/plpa_map.Plo
/bin/sh ../../libtool --tag=CC   --mode=link gcc  -g -O2   -o libplpa_included.la  plpa_api_probe.lo plpa_dispatch.lo plpa_runtime.lo plpa_map.lo  -lncurses -lm
mkdir .libs
ar cru .libs/libplpa_included.a  plpa_api_probe.o plpa_dispatch.o plpa_runtime.o plpa_map.o
ranlib .libs/libplpa_included.a
creating libplpa_included.la
(cd .libs && rm -f libplpa_included.la && ln -s ../libplpa_included.la libplpa_included.la)
make[4]: Leaving directory `/root/veket/htop-0.8.3/plpa-1.1/src'
make[3]: Leaving directory `/root/veket/htop-0.8.3/plpa-1.1/src'
make[3]: Entering directory `/root/veket/htop-0.8.3/plpa-1.1'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/veket/htop-0.8.3/plpa-1.1'
make[2]: Leaving directory `/root/veket/htop-0.8.3/plpa-1.1'
make[2]: Entering directory `/root/veket/htop-0.8.3'
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-AvailableMetersPanel.o -MD -MP -MF .deps/htop-AvailableMetersPanel.Tpo -c -o htop-AvailableMetersPanel.o `test -f 'AvailableMetersPanel.c' || echo './'`AvailableMetersPanel.c
mv -f .deps/htop-AvailableMetersPanel.Tpo .deps/htop-AvailableMetersPanel.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-CategoriesPanel.o -MD -MP -MF .deps/htop-CategoriesPanel.Tpo -c -o htop-CategoriesPanel.o `test -f 'CategoriesPanel.c' || echo './'`CategoriesPanel.c
mv -f .deps/htop-CategoriesPanel.Tpo .deps/htop-CategoriesPanel.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-CheckItem.o -MD -MP -MF .deps/htop-CheckItem.Tpo -c -o htop-CheckItem.o `test -f 'CheckItem.c' || echo './'`CheckItem.c
mv -f .deps/htop-CheckItem.Tpo .deps/htop-CheckItem.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-ClockMeter.o -MD -MP -MF .deps/htop-ClockMeter.Tpo -c -o htop-ClockMeter.o `test -f 'ClockMeter.c' || echo './'`ClockMeter.c
mv -f .deps/htop-ClockMeter.Tpo .deps/htop-ClockMeter.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-ColorsPanel.o -MD -MP -MF .deps/htop-ColorsPanel.Tpo -c -o htop-ColorsPanel.o `test -f 'ColorsPanel.c' || echo './'`ColorsPanel.c
mv -f .deps/htop-ColorsPanel.Tpo .deps/htop-ColorsPanel.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-ColumnsPanel.o -MD -MP -MF .deps/htop-ColumnsPanel.Tpo -c -o htop-ColumnsPanel.o `test -f 'ColumnsPanel.c' || echo './'`ColumnsPanel.c
mv -f .deps/htop-ColumnsPanel.Tpo .deps/htop-ColumnsPanel.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-CPUMeter.o -MD -MP -MF .deps/htop-CPUMeter.Tpo -c -o htop-CPUMeter.o `test -f 'CPUMeter.c' || echo './'`CPUMeter.c
mv -f .deps/htop-CPUMeter.Tpo .deps/htop-CPUMeter.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-CRT.o -MD -MP -MF .deps/htop-CRT.Tpo -c -o htop-CRT.o `test -f 'CRT.c' || echo './'`CRT.c
mv -f .deps/htop-CRT.Tpo .deps/htop-CRT.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-DebugMemory.o -MD -MP -MF .deps/htop-DebugMemory.Tpo -c -o htop-DebugMemory.o `test -f 'DebugMemory.c' || echo './'`DebugMemory.c
mv -f .deps/htop-DebugMemory.Tpo .deps/htop-DebugMemory.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-DisplayOptionsPanel.o -MD -MP -MF .deps/htop-DisplayOptionsPanel.Tpo -c -o htop-DisplayOptionsPanel.o `test -f 'DisplayOptionsPanel.c' || echo './'`DisplayOptionsPanel.c
mv -f .deps/htop-DisplayOptionsPanel.Tpo .deps/htop-DisplayOptionsPanel.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-FunctionBar.o -MD -MP -MF .deps/htop-FunctionBar.Tpo -c -o htop-FunctionBar.o `test -f 'FunctionBar.c' || echo './'`FunctionBar.c
mv -f .deps/htop-FunctionBar.Tpo .deps/htop-FunctionBar.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-Hashtable.o -MD -MP -MF .deps/htop-Hashtable.Tpo -c -o htop-Hashtable.o `test -f 'Hashtable.c' || echo './'`Hashtable.c
mv -f .deps/htop-Hashtable.Tpo .deps/htop-Hashtable.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-Header.o -MD -MP -MF .deps/htop-Header.Tpo -c -o htop-Header.o `test -f 'Header.c' || echo './'`Header.c
mv -f .deps/htop-Header.Tpo .deps/htop-Header.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-htop.o -MD -MP -MF .deps/htop-htop.Tpo -c -o htop-htop.o `test -f 'htop.c' || echo './'`htop.c
mv -f .deps/htop-htop.Tpo .deps/htop-htop.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-ListItem.o -MD -MP -MF .deps/htop-ListItem.Tpo -c -o htop-ListItem.o `test -f 'ListItem.c' || echo './'`ListItem.c
mv -f .deps/htop-ListItem.Tpo .deps/htop-ListItem.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-LoadAverageMeter.o -MD -MP -MF .deps/htop-LoadAverageMeter.Tpo -c -o htop-LoadAverageMeter.o `test -f 'LoadAverageMeter.c' || echo './'`LoadAverageMeter.c
mv -f .deps/htop-LoadAverageMeter.Tpo .deps/htop-LoadAverageMeter.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-MemoryMeter.o -MD -MP -MF .deps/htop-MemoryMeter.Tpo -c -o htop-MemoryMeter.o `test -f 'MemoryMeter.c' || echo './'`MemoryMeter.c
mv -f .deps/htop-MemoryMeter.Tpo .deps/htop-MemoryMeter.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-Meter.o -MD -MP -MF .deps/htop-Meter.Tpo -c -o htop-Meter.o `test -f 'Meter.c' || echo './'`Meter.c
mv -f .deps/htop-Meter.Tpo .deps/htop-Meter.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-MetersPanel.o -MD -MP -MF .deps/htop-MetersPanel.Tpo -c -o htop-MetersPanel.o `test -f 'MetersPanel.c' || echo './'`MetersPanel.c
mv -f .deps/htop-MetersPanel.Tpo .deps/htop-MetersPanel.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-Object.o -MD -MP -MF .deps/htop-Object.Tpo -c -o htop-Object.o `test -f 'Object.c' || echo './'`Object.c
mv -f .deps/htop-Object.Tpo .deps/htop-Object.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-Panel.o -MD -MP -MF .deps/htop-Panel.Tpo -c -o htop-Panel.o `test -f 'Panel.c' || echo './'`Panel.c
mv -f .deps/htop-Panel.Tpo .deps/htop-Panel.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-BatteryMeter.o -MD -MP -MF .deps/htop-BatteryMeter.Tpo -c -o htop-BatteryMeter.o `test -f 'BatteryMeter.c' || echo './'`BatteryMeter.c
mv -f .deps/htop-BatteryMeter.Tpo .deps/htop-BatteryMeter.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-Process.o -MD -MP -MF .deps/htop-Process.Tpo -c -o htop-Process.o `test -f 'Process.c' || echo './'`Process.c
mv -f .deps/htop-Process.Tpo .deps/htop-Process.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-ProcessList.o -MD -MP -MF .deps/htop-ProcessList.Tpo -c -o htop-ProcessList.o `test -f 'ProcessList.c' || echo './'`ProcessList.c
mv -f .deps/htop-ProcessList.Tpo .deps/htop-ProcessList.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-RichString.o -MD -MP -MF .deps/htop-RichString.Tpo -c -o htop-RichString.o `test -f 'RichString.c' || echo './'`RichString.c
mv -f .deps/htop-RichString.Tpo .deps/htop-RichString.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-ScreenManager.o -MD -MP -MF .deps/htop-ScreenManager.Tpo -c -o htop-ScreenManager.o `test -f 'ScreenManager.c' || echo './'`ScreenManager.c
mv -f .deps/htop-ScreenManager.Tpo .deps/htop-ScreenManager.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-Settings.o -MD -MP -MF .deps/htop-Settings.Tpo -c -o htop-Settings.o `test -f 'Settings.c' || echo './'`Settings.c
mv -f .deps/htop-Settings.Tpo .deps/htop-Settings.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-SignalItem.o -MD -MP -MF .deps/htop-SignalItem.Tpo -c -o htop-SignalItem.o `test -f 'SignalItem.c' || echo './'`SignalItem.c
mv -f .deps/htop-SignalItem.Tpo .deps/htop-SignalItem.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-SignalsPanel.o -MD -MP -MF .deps/htop-SignalsPanel.Tpo -c -o htop-SignalsPanel.o `test -f 'SignalsPanel.c' || echo './'`SignalsPanel.c
mv -f .deps/htop-SignalsPanel.Tpo .deps/htop-SignalsPanel.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-String.o -MD -MP -MF .deps/htop-String.Tpo -c -o htop-String.o `test -f 'String.c' || echo './'`String.c
mv -f .deps/htop-String.Tpo .deps/htop-String.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-SwapMeter.o -MD -MP -MF .deps/htop-SwapMeter.Tpo -c -o htop-SwapMeter.o `test -f 'SwapMeter.c' || echo './'`SwapMeter.c
mv -f .deps/htop-SwapMeter.Tpo .deps/htop-SwapMeter.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-TasksMeter.o -MD -MP -MF .deps/htop-TasksMeter.Tpo -c -o htop-TasksMeter.o `test -f 'TasksMeter.c' || echo './'`TasksMeter.c
mv -f .deps/htop-TasksMeter.Tpo .deps/htop-TasksMeter.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-TraceScreen.o -MD -MP -MF .deps/htop-TraceScreen.Tpo -c -o htop-TraceScreen.o `test -f 'TraceScreen.c' || echo './'`TraceScreen.c
mv -f .deps/htop-TraceScreen.Tpo .deps/htop-TraceScreen.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-UptimeMeter.o -MD -MP -MF .deps/htop-UptimeMeter.Tpo -c -o htop-UptimeMeter.o `test -f 'UptimeMeter.c' || echo './'`UptimeMeter.c
mv -f .deps/htop-UptimeMeter.Tpo .deps/htop-UptimeMeter.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-UsersTable.o -MD -MP -MF .deps/htop-UsersTable.Tpo -c -o htop-UsersTable.o `test -f 'UsersTable.c' || echo './'`UsersTable.c
mv -f .deps/htop-UsersTable.Tpo .deps/htop-UsersTable.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-Vector.o -MD -MP -MF .deps/htop-Vector.Tpo -c -o htop-Vector.o `test -f 'Vector.c' || echo './'`Vector.c
mv -f .deps/htop-Vector.Tpo .deps/htop-Vector.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-AvailableColumnsPanel.o -MD -MP -MF .deps/htop-AvailableColumnsPanel.Tpo -c -o htop-AvailableColumnsPanel.o `test -f 'AvailableColumnsPanel.c' || echo './'`AvailableColumnsPanel.c
mv -f .deps/htop-AvailableColumnsPanel.Tpo .deps/htop-AvailableColumnsPanel.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-AffinityPanel.o -MD -MP -MF .deps/htop-AffinityPanel.Tpo -c -o htop-AffinityPanel.o `test -f 'AffinityPanel.c' || echo './'`AffinityPanel.c
mv -f .deps/htop-AffinityPanel.Tpo .deps/htop-AffinityPanel.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-HostnameMeter.o -MD -MP -MF .deps/htop-HostnameMeter.Tpo -c -o htop-HostnameMeter.o `test -f 'HostnameMeter.c' || echo './'`HostnameMeter.c
mv -f .deps/htop-HostnameMeter.Tpo .deps/htop-HostnameMeter.Po
gcc -DHAVE_CONFIG_H -I. -I./plpa-1.1/src  -DSYSCONFDIR=\"/usr/etc\"  -pedantic -Wall -std=c99 -D_XOPEN_SOURCE_EXTENDED -g -O2 -MT htop-OpenFilesScreen.o -MD -MP -MF .deps/htop-OpenFilesScreen.Tpo -c -o htop-OpenFilesScreen.o `test -f 'OpenFilesScreen.c' || echo './'`OpenFilesScreen.c
mv -f .deps/htop-OpenFilesScreen.Tpo .deps/htop-OpenFilesScreen.Po
/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 `/root/veket/htop-0.8.3'
make[1]: Leaving directory `/root/veket/htop-0.8.3'
# new2dir make install

步骤 1
看来,软件包的目录是 '../htop-0.8.3'
如果这是正确的, 按下 ENTER 回车键.
否则, 请输入正确的目录和相关的地址.
注意:
此脚本将创建一个与包同名的目录
它的版本号必须展开
数字间着数字,其软件命名和版本号必须用一个破折号分隔
  '-', 例如, 'seamonkey-2.0.7'.
一个目录名称如 'seamonkey-alpha1' 写法是错误的
版本代号应写在数字的后边, 例如 'seamonkey-1.0.7alpha1'.
如果你认为 ../htop-0.8.3 是不正确的,现在必须退出则按 CTRL-C 将关闭这个
命令行窗口, 然后去重命名目录.
现在输入类型:
好的, 使用 ../htop-0.8.3

步骤 2
系统是运行在 i486 CPU 体系上的. 通常这意味着
您必须指定 'build=i486-t2-linux-gnu' (有时主机=)
有些套件并没有这样的配置选项和汇编1
特定 CPU 不管你是什么 PC.
如果您所编译的一个 i486, 直接按下 ENTER 键就行.
否则, 输入相应的 CPU 类型, 例如: i386 i486 i686 (需要.
在这里输入类型: i386
好的, 使用 i386

步骤 3
如果你想, 你可以将程序分成为几个独立的小包
可以分成类似这样 '可执行文件', '相关文档', '开发包' 和
'国际翻译' 几个组件.
如果有共享库包, 我们建议至少
创建一个 seaparate '开发库' 软件包.
这里的想法是 '修剪' 尽量使你只
有什么是绝对需要的 '可执行文件' PET 软件包, 但是
如果需要的话可以安装额外的组件.
注意: 此脚本可能无法完成自动将包完美的拆开
         你可能需要修改创建的内容
         在最后一步之前的修改,分开它们单独的目录
         到 PET 软件包.

按下 ENTER 回车键将只创建一个软件包.
或者, 输入一个数字选择哪个单独的包来创建
1 只建立一个软件包 (目录名)
2 创建一个单独的 '开发' 软件包
3 分别创建 '开发', '文档', '国际化' 软件包
或者, 输入一个逗号分隔的列表来分别创建
, 使用关键字 'exe', 'dev', 'doc', 'nls'.
例子: exe,dev,doc  (在这个例子, nls 是国际化翻译的部分内容
, 它是一个, 是由 exe 组成的).
输入类型 (按下 ENTER ): 1

步骤 4
以下是关于被执行的内容:
# installwatch -o /tmp/pkginstall.list make install
...在文件记录所有动作 /tmp/pkginstall.list
然后确定此脚本将所有新创建的目录
和文件创建到 '../htop-0.8.3-i386' 与新文件.
(并有选择地 ../htop_DEV-0.8.3-i386, ../htop_DOC-0.8.3-i386, ../htop_NLS-0.8.3-i386)
请按下 ENTER 键来继续:
make  install-recursive
make[1]: Entering directory `/root/veket/htop-0.8.3'
Making install in plpa-1.1
make[2]: Entering directory `/root/veket/htop-0.8.3/plpa-1.1'
Making install in src
make[3]: Entering directory `/root/veket/htop-0.8.3/plpa-1.1/src'
make[4]: Entering directory `/root/veket/htop-0.8.3/plpa-1.1/src'
test -z "/usr/lib" || ../.././install-sh -c -d "/usr/lib"
test -z "/usr/include" || ../.././install-sh -c -d "/usr/include"
make[4]: Leaving directory `/root/veket/htop-0.8.3/plpa-1.1/src'
make[3]: Leaving directory `/root/veket/htop-0.8.3/plpa-1.1/src'
make[3]: Entering directory `/root/veket/htop-0.8.3/plpa-1.1'
make[4]: Entering directory `/root/veket/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 `/root/veket/htop-0.8.3/plpa-1.1'
make[3]: Leaving directory `/root/veket/htop-0.8.3/plpa-1.1'
make[2]: Leaving directory `/root/veket/htop-0.8.3/plpa-1.1'
make[2]: Entering directory `/root/veket/htop-0.8.3'
make[3]: Entering directory `/root/veket/htop-0.8.3'
test -z "/usr/bin" || ./install-sh -c -d "/usr/bin"
  /bin/sh ./libtool --mode=install /usr/bin/ginstall -c 'htop' '/usr/bin/htop'
/usr/bin/ginstall -c htop /usr/bin/htop
test -z "/usr/share/applications" || ./install-sh -c -d "/usr/share/applications"
/usr/bin/ginstall -c -m 644 'htop.desktop' '/usr/share/applications/htop.desktop'
test -z "/usr/share/man/man1" || ./install-sh -c -d "/usr/share/man/man1"
/usr/bin/ginstall -c -m 644 './htop.1' '/usr/share/man/man1/htop.1'
test -z "/usr/share/pixmaps" || ./install-sh -c -d "/usr/share/pixmaps"
/usr/bin/ginstall -c -m 644 'htop.png' '/usr/share/pixmaps/htop.png'
make[3]: Leaving directory `/root/veket/htop-0.8.3'
make[2]: Leaving directory `/root/veket/htop-0.8.3'
make[1]: Leaving directory `/root/veket/htop-0.8.3'

步骤 5
处理 /usr/bin/htop
处理 /usr/share/applications/htop.desktop
处理 /usr/share/man/man1/htop.1
处理 /usr/share/pixmaps/htop.png

Finished
../htop-0.8.3-i386 is now fully populated.
../htop-0.8.3-i386.files has a list of the installed files.
You might want to go into it and trim the fat or whatever,
but basically it is now ready to be converted to a PET
package. Just do this:
# cd ..
# dir2pet htop-0.8.3-i386

按 ENTER 键退出此脚本.
或者, 如果你想方便, 使用 'dir2pet' 脚本可以启动
现在 -- 按键盘上的任何字符同 ENTER.
在这里输入:
# htop
 楼主| 发表于 2010-7-12 12:57 | 显示全部楼层
最后一步,直接输入htop就运行起来了:28)

                               
登录/注册后可看大图


                               
登录/注册后可看大图


我编辑好的版本在这里:
http://www.lucky8k.com/thread-77356-1-1.html

大家编译好的版本也分享下嘛,学习是一种过程。

[ 本帖最后由 puyknq 于 2010-7-12 13:04 编辑 ]
发表于 2010-7-12 17:02 | 显示全部楼层
跟着楼主学习编译。
发表于 2010-7-27 20:47 | 显示全部楼层
这个简单,一学就会。
您需要登录后才可以回帖 登录 | 要注册

本版积分规则

QQ|手机版|Archiver|veket官方网站论坛 ( 粤ICP备 11052856 )

GMT+8, 2024-4-29 02:55

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表