Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The start script failed when use create-socket-app #851

Closed
Priestch opened this issue Dec 17, 2023 · 7 comments
Closed

The start script failed when use create-socket-app #851

Priestch opened this issue Dec 17, 2023 · 7 comments

Comments

@Priestch
Copy link

What OS are you using (uname -a, or Windows version)?

Linux P5560 6.2.0-39-generic #40~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 16 10:53:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

What version Socket Runtime are you using?

0.5.3 (c4ef020)

What programming language are you using (C/C++/Go/Rust)?

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.

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 go1.21.3 linux/amd64

rustc 1.71.0 (8ede3aae2 2023-07-12)

What did you expect to see and what you saw instead?

I use the create-socket-app to create a demo app, I run npm run start after installed the dependencies, it output the error below, What I should to fix it?

> ssc build -r -o

• cleaned: /home/xx/build/linux +2ms
• preparing build for linux +0ms
• ran user build command +261ms
• package prepared +0ms
• Unable to build +79ms
• In file included from /home/xx/.fnm/node-versions/v16.19.1/installation/lib/node_modules/@socketsupply/socket/node_modules/@socketsupply/socket-linux-x64/src/init.cc:1:
/home/xx/.fnm/node-versions/v16.19.1/installation/lib/node_modules/@socketsupply/socket/node_modules/@socketsupply/socket-linux-x64/src/core/config.hh:4:10: fatal error: 'iterator' file not found
#include <iterator>
         ^~~~~~~~~~
1 error generated.
 +0ms
@jwerle
Copy link
Member

jwerle commented Dec 17, 2023

hi @Priestch,

could you ensure you have libc++abi-14-dev and libc++-14-dev installed?

@trygve-lie
Copy link

I am getting the same error on Ubuntu (22.04.3).

I'm following the quick start example in the docs: https://socketsupply.co/guides/#quick-start_develop and on ssc build -r I am getting:

$ ssc build -r
• preparing build for linux +3ms
• package prepared +7ms
• Unable to build +527ms
• In file included from /home/trygve/.nvm/versions/node/v20.10.0/lib/node_modules/@socketsupply/socket/node_modules/@socketsupply/socket-linux-x64/src/init.cc:1:
/home/trygve/.nvm/versions/node/v20.10.0/lib/node_modules/@socketsupply/socket/node_modules/@socketsupply/socket-linux-x64/src/core/config.hh:4:10: fatal error: 'iterator' file not found
#include <iterator>
         ^~~~~~~~~~
1 error generated.
 +0ms

could you ensure you have libc++abi-14-dev and libc++-14-dev installed?

I do have both installed:

libc++abi-14-dev is already the newest version (1:14.0.0-1ubuntu1.1).
libc++-14-dev is already the newest version (1:14.0.0-1ubuntu1.1).

@trygve-lie
Copy link

Adding this solved it for me:

sudo apt install g++-12

Based on https://askubuntu.com/a/1449800

@jwerle
Copy link
Member

jwerle commented Dec 18, 2023

Adding this solved it for me:

sudo apt install g++-12

Based on https://askubuntu.com/a/1449800

ah great! I just noticed you had gcc@11 installed above - we need to update our guides

@jwerle
Copy link
Member

jwerle commented Dec 18, 2023

Adding this solved it for me:

sudo apt install g++-12

Based on https://askubuntu.com/a/1449800

ah great! I just noticed you had gcc@11 installed above - we need to update our guides

oops, no it is the OP that has gcc@11

@Priestch could you try what @trygve-lie did to resolve the issue?

@jwerle jwerle removed their assignment Dec 18, 2023
@Priestch
Copy link
Author

@jwerle It worked, now I can successfully run the demo.

@jwerle jwerle closed this as completed Dec 19, 2023
@ahouchens
Copy link

Adding this solved it for me:

sudo apt install g++-12

Based on https://askubuntu.com/a/1449800

Yup, this worked for me too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants