From 09df3d2342924a3fa86584be959978435a157b1e Mon Sep 17 00:00:00 2001 From: Eric Chang Date: Tue, 8 Oct 2019 10:18:42 +0800 Subject: [PATCH] fix install nvidia driver --- ...idia-driver-cuda-pgstrom-in-ubuntu-1804.md | 20 +++ public/categories/index.html | 122 +++++++++++++----- .../index.html | 18 +++ 3 files changed, 125 insertions(+), 35 deletions(-) diff --git a/content/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804.md b/content/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804.md index 2ec42d46..9027ee22 100644 --- a/content/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804.md +++ b/content/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804.md @@ -38,6 +38,7 @@ keywords: ``` sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update +sudo apt install ubuntu-drivers-common ``` 然後用這個指令 ``` @@ -189,6 +190,25 @@ https://github.com/heterodb/pg-strom 總之,目前在ubuntu 18.04 + postgresql-11 的環境下編譯是沒有問題了 +## UPDATE + +今天拿到一張 GTX 1050 ti ,想說終於可以來測試看看 pg_strom 了 + +不過發現在ubuntu 底下,照著這篇操作還是會有問題 + +在做完git clone 要 make 之前,要先執行底下兩行指令 + +其中的 11 是 postgresql 版本,要依照自己安裝的版本做調整 + +``` +sudo ln -snf /usr/lib/postgresql/11/lib/libpgcommon.a /usr/lib/x86_64-linux-gnu/libpgcommon.a +sudo ln -snf /usr/lib/postgresql/11/lib/libpgport.a /usr/lib/x86_64-linux-gnu/libpgport.a + +``` + +接著再去 make 就沒問題了 + + ``` git clone https://github.com/heterodb/pg-strom.git cd pg-strom diff --git a/public/categories/index.html b/public/categories/index.html index adb984d7..8c5e7e54 100644 --- a/public/categories/index.html +++ b/public/categories/index.html @@ -8,12 +8,12 @@ - Categories | MCの飄狂山莊㊣ - - - - - + | MCの飄狂山莊㊣ + + + + + @@ -89,41 +89,93 @@
+ + +
+ + + + -
-
- - + + + +
+ + + +
+ + + +
+ + +
diff --git a/public/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/index.html b/public/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/index.html index b69272be..0ede621a 100644 --- a/public/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/index.html +++ b/public/post/install-nvidia-driver-cuda-pgstrom-in-ubuntu-1804/index.html @@ -157,6 +157,7 @@
sudo add-apt-repository ppa:graphics-drivers/ppa
 sudo apt update
+sudo apt install ubuntu-drivers-common
 

然後用這個指令

@@ -310,6 +311,23 @@ sudo apt install postgresql-client-11 postgresql-11 postgresql-server-dev-11 pos

總之,目前在ubuntu 18.04 + postgresql-11 的環境下編譯是沒有問題了

+

UPDATE

+ +

今天拿到一張 GTX 1050 ti ,想說終於可以來測試看看 pg_strom 了

+ +

不過發現在ubuntu 底下,照著這篇操作還是會有問題

+ +

在做完git clone 要 make 之前,要先執行底下兩行指令

+ +

其中的 11 是 postgresql 版本,要依照自己安裝的版本做調整

+ +
sudo ln -snf /usr/lib/postgresql/11/lib/libpgcommon.a /usr/lib/x86_64-linux-gnu/libpgcommon.a
+sudo ln -snf /usr/lib/postgresql/11/lib/libpgport.a /usr/lib/x86_64-linux-gnu/libpgport.a
+
+
+ +

接著再去 make 就沒問題了

+
git clone https://github.com/heterodb/pg-strom.git
 cd pg-strom
 make && sudo make install