william

Keep Calm and Markdown.

GLIBCXX: not found

无法找到 GLIBCXX 的解决方法。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Ubuntu
cd /usr/lib/x86_64-linux-gnu/
## CentOS
cd /usr/lib64

ll |grep libstd
strings libstdc++.so.6 | grep GLIBCXX
## 有可能找不到 GLIBCXX_3.2.26

locate libstdc++.so.6

strings /usr/local/gcc/lib64/libstdc++.so.6 | grep GLIBCXX
cp /usr/local/gcc/lib64/libstdc++.so.6 /usr/lib/x86_64-linux-gnu
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

R: 安装 tensorflow

1
2
3
4
5
6
7
8
Sys.setenv(TENSORFLOW_PYTHON="/home/fl/anaconda3/bin")
devtools::install_github("rstudio/tensorflow")
devtools::install_github("rstudio/keras")

library(tensorflow)

hello <- tf$constant("Hello")
print(hello)
0%