小编ope*_*tor的帖子

VS Code 远程 ssh 缺少 GLIBCXX 和 GLIBC

我正在尝试使用 VS Code 的通过 ssh 功能进行远程开发。连接到远程服务器时我遇到:

Missing GLIBCXX >= 3.4.18!
>Found versions 3.4.1
> 3.4.2
> ...
> 3.4.13

Missing GLIBC >= 2.17!
Found version ldd (GNU libc) 2.12
Run Code Online (Sandbox Code Playgroud)

在遥控器上,我加载模块gcc/7.3.0并确认版本:

gcc --version
> gcc (GCC) 7.3.0
Run Code Online (Sandbox Code Playgroud)

并且还发现:

ldd --version
> ldd (GNU libc) 2.12
Run Code Online (Sandbox Code Playgroud)

/lib我找到libc-2.12.so并发现GLIBC的最大版本是2.12:

strings libc-2.12.so | grep GLIB
> GLIBC_2.0
> GLIBC_2.1
> ...
> GLIBC_2.12
Run Code Online (Sandbox Code Playgroud)

但是,我可以在系统的另一个位置找到所需版本的库/usr/lots/of/directories/gcc/x86_64-pc-linux-gnu/7.3.0

strings libstdc++.so.6.0.24 | grep GLIB
> GLIBCXX_3.4
> ...
> GLIBCXX_3.4.24
> ... …
Run Code Online (Sandbox Code Playgroud)

libc libstdc++ visual-studio-code vscode-remote

7
推荐指数
1
解决办法
6543
查看次数

添加两个功能的新功能

是否可以通过添加 Julia 中的其他两个函数来创建一个新函数?我想做这样的事情:

function quadratic(x)
  return x^2
end

function cubic(x)
  return x^3
end

f::Function = quadratic + cubic
# such that f(x) returns x^2 + x^3

Run Code Online (Sandbox Code Playgroud)

julia

2
推荐指数
1
解决办法
171
查看次数