socket icon indicating copy to clipboard operation
socket copied to clipboard

Install Script Failure

Open ricklyman opened this issue 1 year ago • 8 comments

1 error generated. not ok - /usr/lib/llvm-14/bin/clang++ (14.0.0) failed in feature check required for building Socket Runtime - please report (https://discord.gg/YPV32gKCsH)

Ubuntu 22.04.4 LTS 64 bit Intel i5

. <(curl -s -o- https://socketsupply.co/sh)

install fails, ssc - v fails

gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

clang --version fails sudo apt install clang-14 clang-14 is already the newest version (1:14.0.0-1ubuntu1.1)

may be related to issue #563

ricklyman avatar Mar 20 '24 13:03 ricklyman

if you want to build the project so that you can contribute, you'll need clang >=15, (FYI you can also just npm install so you don't need to update your toolchain)

heapwolf avatar Mar 20 '24 19:03 heapwolf

https://socketsupply.co/guides/ sudo apt install
... clang-14
...

sudo apt remove clang-14 sudo apt install clang-15

. <(curl -s -o- https://socketsupply.co/sh)

... cp: cannot stat '/home/rlyman/socket/build/x86_64-desktop/pkgconfig/': No such file or directory ... cp: cannot stat '/home/rlyman/socket/build/x86_64-android/pkgconfig/': No such file or directory cp: cannot stat '/home/rlyman/socket/build/arm64-v8a-android/pkgconfig/': No such file or directory ... cp: cannot stat '/home/rlyman/socket/build/x86_64-desktop/bin/': No such file or directory not ok - unable to move binary into '/home/rlyman/.local/share/socket' - please report (https://discord.gg/YPV32gKCsH)

ricklyman avatar Mar 20 '24 19:03 ricklyman

now you have a new problem, I think because it's in a bad state, what happens if you just delete any artifacts created by that script and do this...

git clone [email protected]:socketsupply/socket.git
cd socket
VERBOSE=1 ./bin/install.sh

heapwolf avatar Mar 20 '24 19:03 heapwolf

...delete any artifacts ... ? removed socket directory

git clone [email protected]:socketsupply/socket.git fails

git clone https://github.com/socketsupply/socket.git succeeds

cd socket VERBOSE=1 ./bin/install.sh

... /home/rlyman/socket/src/core/types.hh:4:10: fatal error: 'array' file not found #include ... 1 error generated. not ok - /usr/lib/llvm-15/bin/clang++ (15.0.7) failed in feature check required for building Socket Runtime - please report (https://discord.gg/YPV32gKCsH)

ricklyman avatar Mar 20 '24 20:03 ricklyman

...delete any artifacts ... ? removed socket directory

git clone [email protected]:socketsupply/socket.git fails

git clone https://github.com/socketsupply/socket.git succeeds

cd socket VERBOSE=1 ./bin/install.sh

... /home/rlyman/socket/src/core/types.hh:4:10: fatal error: 'array' file not found #include ... 1 error generated. not ok - /usr/lib/llvm-15/bin/clang++ (15.0.7) failed in feature check required for building Socket Runtime - please report (https://discord.gg/YPV32gKCsH)

Hi @ricklyman

Could you also install libstdc++ too?

jwerle avatar Mar 20 '24 20:03 jwerle

jwerle: do you mean: sudo apt-get install libstdc++6 ? ... libstdc++6 is already the newest version (12.3.0-1ubuntu1~22.04) ... VERBOSE=1 ./bin/install.sh same result as above

ricklyman avatar Mar 20 '24 22:03 ricklyman

How about libc++abi-dev?

jwerle avatar Mar 20 '24 22:03 jwerle

sudo apt-get install libc++abi-dev ... libc++abi-dev 0 upgraded, 1 newly installed, ... ...

VERBOSE=1 ./bin/install.sh same result as above

/home/rlyman/socket/src/core/types.hh:4:10: fatal error: 'array' file not found #include ^~~~~~~ ... 1 error generated. not ok - /usr/lib/llvm-15/bin/clang++ (15.0.7) failed in feature check

ricklyman avatar Mar 20 '24 23:03 ricklyman