安裝gc_buffercache的時候報錯:
[root@~ pg_buffercache]# gmake gmake: Nothing to be done for `all'.
解決方法:
>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