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

make error #21

Closed
Haruno19 opened this issue Nov 3, 2022 · 8 comments
Closed

make error #21

Haruno19 opened this issue Nov 3, 2022 · 8 comments
Labels
bug Something isn't working work in progress Currently working on this

Comments

@Haruno19
Copy link
Owner

Haruno19 commented Nov 3, 2022

  Hi, I'm trying to install this software but when I do it appears next message:

  g++ -std=c++17 src/starfetch.cpp -o starfetch
  src/starfetch.cpp:9:10: fatal error: filesystem: No existe el archivo o el directorio
  #include <filesystem>
            ^~~~~~~~~~~~
  compilation terminated.
  makefile:10: fallo en las instrucciones para el objetivo 'starfetch'
  make: *** [starfetch] Error 1

  hope you can tell me how I can fix this issue. Thanks a lot.

Originally posted by @cescha2018 in #11 (comment)

@Haruno19
Copy link
Owner Author

Haruno19 commented Nov 3, 2022

@cescha2018 I opened an issue from your discussion thread.

I can't replicate this issue, it works for me.
Can you please share the content of the starfetch folder after cloning the repo? Specifically what's inside the starfecth/src folder.

src/starfetch.cpp:9:10: fatal error: filesystem: No existe el archivo o el directorio
#include 
^~~~~~~~~~~~

It looks like it can't find the include directory or files.

Also, it may be useful if you share the output of g++ --version

@Haruno19 Haruno19 added bug Something isn't working work in progress Currently working on this labels Nov 3, 2022
@su8
Copy link
Contributor

su8 commented Nov 29, 2022

I'm not getting this error, either in Linux or Windows.

@Haruno19
Copy link
Owner Author

Haruno19 commented Dec 1, 2022

I'm not getting this error, either in Linux or Windows.

Me neither, and OP never replied... I'll keep the issue open just in case they reply in the future, or maybe someone else gets the same error

@cescha2018
Copy link

cescha2018 commented Dec 17, 2022

hi everyone, I'm sorry for answering until now, this is what I got on console:

❯ cd starfetch
❯ make
g++ -Wall -Wextra -O2 -ggdb -std=c++17 -pipe -pedantic -Wundef -Wshadow -W -Wwrite-strings -Wcast-align -Wstrict-overflow=5 -Wconversion -Wpointer-arith -Wformat=2 -Wsign-compare -Wendif-labels -Wredundant-decls -Winit-self src/starfetch.cpp -o starfetch
src/starfetch.cpp:10:10: fatal error: filesystem: No existe el archivo o el directorio
#include
^~~~~~~~~~~~
compilation terminated.
makefile:10: fallo en las instrucciones para el objetivo 'starfetch'
make: *** [starfetch] Error 1

and this too...

❯ sudo make install
rm -rf /usr/local/share/starfetch
mkdir -p /usr/local/share/starfetch
cp -rf ./res/* /usr/local/share/starfetch/
chmod 711 starfetch
chmod: no se puede acceder a 'starfetch': No existe el archivo o el directorio
makefile:13: fallo en las instrucciones para el objetivo 'install'
make: *** [install] Error 1

@su8
Copy link
Contributor

su8 commented Dec 17, 2022

Reinstall coreutils, glibc. Coreutils for cmod and glibc for the #include headers.

@su8
Copy link
Contributor

su8 commented Dec 17, 2022

You'll also need GCC version 8 and above.

@cescha2018
Copy link

hi guys, thank you so much, now it works nicely!!

Yes,it was missing those packages and upgrade gcc. I like this app!! 👍🏼

@Haruno19
Copy link
Owner Author

Haruno19 commented Dec 18, 2022

Nice! Glad to hear it works now, and thanks for liking it :)

Thanks @su8 for the help, as always

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working work in progress Currently working on this
Projects
None yet
Development

No branches or pull requests

3 participants