gmake: Nothing to be done for `all'.

安裝gc_buffercache的時候報錯:sql

[root@~ pg_buffercache]# gmake
gmake: Nothing to be done for `all'.

 

解決方法:bash

>make clean(清除上次make命令所產生的object文件(後綴爲「.o」的文件)及可執行文件。)
>ldconfig  (該命令一般在系統啓動時運行,確保動態連接庫爲系統所共享。當用戶安裝了一個新的動態連接庫時,則需手工運行該命令。)
>gmake(執行makefile文件)
而後可以從新編譯了。

--------------------- 
[root@~ pg_buffercache]# make clean
rm -f pg_buffercache.so   libpg_buffercache.a  libpg_buffercache.pc
rm -f pg_buffercache_pages.o 
[root@~ pg_buffercache]# gmake
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -O2 -fPIC -I. -I. -I../../src/include  -D_GNU_SOURCE   -c -o pg_buffercache_pages.o pg_buffercache_pages.c
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -O2 -fPIC -shared -o pg_buffercache.so pg_buffercache_pages.o  -L../../src/port -L../../src/common    -Wl,--as-needed -Wl,-rpath,'/usr/local/pgsql10.7/lib',--enable-new-dtags  
相關文章
相關標籤/搜索