ad-oliviero / uwufetch

A meme system info tool for Linux, based on nyan/uwu trend on r/linuxmasterrace.
GNU General Public License v3.0
747 stars 48 forks source link

uwufetch under macOS #81

Closed sech1p closed 3 years ago

sech1p commented 3 years ago

0 packages under macOS: https://github.com/TheDarkBug/uwufetch/pull/76#issue-616358491 macOS returns illegal hardware instruction: https://github.com/TheDarkBug/uwufetch/commit/938520b4f39a52aaa9734028478660221e7bdeeb

ad-oliviero commented 3 years ago

I just installed homebrew on arch linux and it works, could you send the output of brew list --formulae and brew list --formulae 2> /dev/null | wc -l?

sech1p commented 3 years ago

I just installed homebrew on arch linux and it works, could you send the output of brew list --formulae and brew list --formulae 2> /dev/null | wc -l?

brew list --formulae:

adwaita-icon-theme      libvidstab
aom             libvorbis
atk             libvpx
babel               libvterm
bash                libx11
bdw-gc              libxau
berkeley-db         libxcb
bison               libxdmcp
byacc               libxext
c-ares              libxmu
cabextract          libxrender
cairo               libxt
cloc                links
cmake               little-cms2
coreutils           lolcat
(and a lot of other packages...)

brew list --formulae 2> /dev/null | wc -l:

     214
ad-oliviero commented 3 years ago

The command gives output, so it is not the problem. I should test it on a Mac, but I have not a Mac.

sech1p commented 3 years ago

update

context: uwufetch after adding json-c stopped working under macOS, commit https://github.com/TheDarkBug/uwufetch/commit/09b32b1e1eb60ccec5afac0081ee0da8c956a0fc reverted this but latest commit broke uwufetch again works again (https://github.com/TheDarkBug/uwufetch/commit/e1afaa3b9978b055231c046640bef988bbe8c70e)

ad-oliviero commented 3 years ago

I'm sorry that apparently no one uses a Mac, I would try to use darling but I can't build it, so I'll try to install Mac os in a virtual machine (if it is legal) and use it for debugging

ad-oliviero commented 3 years ago

Should be fixed with #98

ad-oliviero commented 3 years ago

It returns me 32767 (max value of 16-bit integer) packages, however, I had only 232 👀

Status update for issues in #98

voidStellar14 commented 3 years ago

I have been trying to install uwufetch on my MacBook (running MacOS X Big Sur) and have been having issues on the "sudo make install" step.

Here is the error and make debug:

sudo make install cc -O3 -o uwufetch uwufetch.c pandoc uwufetch_man.md -st man -o uwufetch.1 uwufetch.1.gz already exists -- do you wish to overwrite (y or n)? y cp uwufetch /usr/bin/uwufetch cp: /usr/bin/uwufetch: Operation not permitted make: *** [install] Error 1

make debug

cc -Wall -Wextra -o uwufetch uwufetch.c ld: can't write output file: uwufetch for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [debug] Error 1

I have tried a restart, a sudo rm -rf ~/uwufetch, and deleting the directory via a file manager. none of those have worked

Is there a way to fix this error?

ad-oliviero commented 3 years ago

Apparently /usr/bin/ is not accessible by the user, so the programs should be installed in /usr/local/bin/. As soon as I can I will create a new makefile target to correctly install in Mac os.

voidStellar14 commented 3 years ago

Thanks!

ad-oliviero commented 3 years ago

I just updated the makefile, sudo make install should now work

voidStellar14 commented 3 years ago

it works, but it looks like this Screen Shot 2021-06-06 at 7 54 33 PM

voidStellar14 commented 3 years ago

This is what it is supposed to look like Screenshot_20210606-200234.png