Closed Tyler887 closed 2 years ago
It looks like there is no cc
binary on your system. You can set proper compiler with CC
env var: CC=gcc make install
.
Are you trying to run the program on Windows? You can try but I cannot guarantee it will work.
I've ran this shell script:
$ pacman -S gcc
resolving dependencies...
looking for conflicting packages...
Packages (8) binutils-2.37-5 isl-0.22.1-1 mpc-1.2.1-1 msys2-runtime-devel-3.3.3-7 msys2-w32api-headers-9.0.0.6214.acc9b9d9e-1
msys2-w32api-runtime-9.0.0.6214.acc9b9d9e-1 windows-default-manifest-6.4-1 gcc-11.2.0-3
Total Download Size: 44.89 MiB
Total Installed Size: 325.87 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
msys2-w32api-headers-9.0.0.6214.acc9b9d9e-1-x86_64 4.7 MiB 1234 KiB/s 00:04 [#############################################] 100%
msys2-w32api-runtime-9.0.0.6214.acc9b9d9e-1-x86_64 1876.4 KiB 445 KiB/s 00:04 [#############################################] 100%
mpc-1.2.1-1-x86_64 67.4 KiB 40.3 KiB/s 00:02 [#############################################] 100%
isl-0.22.1-1-x86_64 506.2 KiB 185 KiB/s 00:03 [#############################################] 100%
windows-default-manifest-6.4-1-x86_64 1388.0 B 1432 B/s 00:01 [#############################################] 100%
msys2-runtime-devel-3.3.3-7-x86_64 5.5 MiB 695 KiB/s 00:08 [#############################################] 100%
binutils-2.37-5-x86_64 5.0 MiB 511 KiB/s 00:10 [#############################################] 100%
gcc-11.2.0-3-x86_64 27.3 MiB 1581 KiB/s 00:18 [#############################################] 100%
Total (8/8) 44.9 MiB 2.40 MiB/s 00:19 [#############################################] 100%
(8/8) checking keys in keyring [#############################################] 100%
(8/8) checking package integrity [#############################################] 100%
(8/8) loading package files [#############################################] 100%
(8/8) checking for file conflicts [#############################################] 100%
(8/8) checking available disk space [#############################################] 100%
:: Processing package changes...
(1/8) installing binutils [#############################################] 100%
(2/8) installing isl [#############################################] 100%
(3/8) installing mpc [#############################################] 100%
(4/8) installing msys2-runtime-devel [#############################################] 100%
(5/8) installing msys2-w32api-headers [#############################################] 100%
(6/8) installing msys2-w32api-runtime [#############################################] 100%
(7/8) installing windows-default-manifest [#############################################] 100%
(8/8) installing gcc [#############################################] 100%
:: Running post-transaction hooks...
(1/1) Updating the info directory file...
Then, a fatal error appeared during gcc make install
:
$ CC=gcc make install
gcc -c -o build/args.o -std=gnu99 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -I. -Os -Itermbox2 -Ic-vector -MD src/args.c
src/args.c:31:10: fatal error: gen/help-msg.h: No such file or directory
31 | #include "gen/help-msg.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:71: build/args.o] Error 1
Did you cd
to ictree
directory?
It turned out I forgot to add a file, just pushed a commit with a fix.
Did you
cd
toictree
directory?
Yes. I'm running the MSYS2 application to run the app. I'm not running a Windows batch prompt, PowerShell Core or Windows PowerShell.
ictree
is an external program, it doesn't matter which shell you're using. Did you pull the latest commit and try again?
I've deleted my ictree
folder, and cloned the repo at ictree
again.
Now this appears:
make: *** No rule to make target 'install'. Stop.
Edit: Now it works. I forgot to run cd ictree
!
It comes up with something weird (causing a nano
-like text editor that does not function):
$ ictree
I will have to run this on a Linux virtual machine. Sorry!
ictree
is waiting for input, this is why it doesn't lauch. Read README, it has usage examples.
What I was trying to do:
The bug: