Closed luojiyin1987 closed 1 year ago
Seems you missed libstdc++ packages. please install libstdc++-11-dev
and try it again.
@luojiyin1987 The error message shows that you are missing the header file 'algorithm', which is part of the C++ standard library. It comes with the package libstdc++. You can do 'apt install build-essential' to have that installed.
@keveinliu @pajama-coder , I try apt install libstdc++-11-dev
and apt install build-essential
is not work.
finish , I try apt install libstdc++-12-dev
, it work , not error.
./pipy -v
Version : nightly-202212202038
Commit : 7d2985ee5eca5f9836b512d3c17fd27fdae85490
Commit Date : Fri, 9 Dec 2022 15:17:49 +0800
Host : Linux-5.15.0-56-generic x86_64
OpenSSL : OpenSSL 1.1.1q 5 Jul 2022
Builtin GUI : No
Samples : No
Are you use C++ 12 to development ?
I get error info /usr/bin/ld: cannot find -lstdc++
I run sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/libstdc++.so
to solve error. Is It call [Makefile:136:all] 错误 2
error ?
I run sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/libstdc++.so to solve error. Is It call [Makefile:136:all] 错误 2 error ?
No, basically it was caused by lack of libstdc++-11-dev(or libstdc++-12-dev).
@keveinliu I don't why apt install libstdc++-11-dev
is not work . So I try apt install libstdc++-12-dev
, It is work
I will create a new VM to test.
@keveinliu I don't why
apt install libstdc++-11-dev
is not work . So I tryapt install libstdc++-12-dev
, It is work I will create a new VM to test.
libstdc++-11-dev
provides files in /usr/include/x86_64-linux-gnu/c++/11
and /usr/include/c++/11, so does libstdc++-12-dev
. It depends on what you've installed. So you just follow @pajama-coder says, to install build-essential
.
(base) [luo@node1 include]$ pwd
/usr/include
(base) [luo@node1 include]$ find . -type f -name "algorithm"
./c++/12/experimental/algorithm
./c++/12/ext/algorithm
./c++/12/parallel/algorithm
./c++/12/algorithm
./c++/11/experimental/algorithm
./c++/11/ext/algorithm
./c++/11/parallel/algorithm
./c++/11/algorithm
./c++/9/experimental/algorithm
./c++/9/ext/algorithm
./c++/9/parallel/algorithm
./c++/9/algorithm
yes, you are right, may be I install too much Development Languages run time, like Rust golang java Python... so I will creat VM to test.
I create a VM, install ubuntu-22.04.1-server-amd64, upgrade to latest.
run sudo apt install clang
and sudo apt install cmake
run .\build.sh
is ok .
I create a VM, install ubuntu-22.04.1-server-amd64, upgrade to latest. run
sudo apt install clang
andsudo apt install cmake
run.\build.sh
is ok .
Great to hear!
Bug Report
Make sure to review these points before submitting issues - thank you!
pipy
version (pipy -v
) and OS. If possible, try to see if the bug still reproduces on master.node v16.18.1
g++ --version g++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
clang --version Ubuntu clang version 14.0.0-1ubuntu1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin
cmake --version cmake version 3.22.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
openssl version OpenSSL 1.1.1q 5 Jul 2022
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy
cat /proc/version Linux version 5.15.0-56-generic (buildd@lcy02-amd64-004) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022
err info