socket
socket copied to clipboard
How to fix missing stdlibc++ headers
What OS are you using (uname -a
, or Windows version)?
Linux 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
What version Socket Runtime are you using?
❯ ssc -v
0.5.4 (f90ba121)
Installation path: $HOME/.nvm/versions/node/v16.18.1/lib/node_modules/@socketsupply/socket/node_modules/@socketsupply/socket-linux-x64/
What programming language are you using (C/C++/Go/Rust)?
No Clang
❯ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.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.
❯ go version
go version go1.18 linux/amd64
❯ rustc --version
rustc 1.66.0 (69f9c33d7 2022-12-12)
What did you expect to see and what you saw instead?
Create a new project using the npm create template. Execute npm start
. I expect the build to complete, and the application to launch. There is an error about a missing header file instead. I installed the required stdlibc++14 header files, but I don't know where or how socketsupply is searching for those.
❯ npm start
> [email protected] start
> ssc build -r -o
• cleaned: $HOME/projects/NeonNova/test/build/linux +4ms
• preparing build for linux +0ms
• ran user build command +265ms
• package prepared +0ms
• Unable to build +127ms
• In file included from $HOME/projects/NeonNova/test/node_modules/@socketsupply/socket-linux-x64/src/init.cc:1:
$HOME/projects/NeonNova/test/node_modules/@socketsupply/socket-linux-x64/src/core/config.hh:4:10: fatal error: 'iterator' file not found
#include <iterator>
^~~~~~~~~~
1 error generated.
+0ms