NikitaIvanovV / ictree

Like tree but interactive
https://nikitaivanovv.github.io/ictree/
GNU General Public License v3.0
147 stars 7 forks source link

Cygwin install error when on Windows and running MSYS2 #10

Closed Tyler887 closed 2 years ago

Tyler887 commented 2 years ago

What I was trying to do:

$ pacman -S git
resolving dependencies...
looking for conflicting packages...

Packages (32) heimdal-7.7.0-3  openssh-8.8p1-1  perl-Authen-SASL-2.16-2  perl-Clone-0.45-2  perl-Convert-BinHex-1.125-1
              perl-Encode-Locale-1.05-1  perl-Error-0.17029-1  perl-File-Listing-6.14-1  perl-HTML-Parser-3.76-1
              perl-HTML-Tagset-3.20-2  perl-HTTP-Cookies-6.10-1  perl-HTTP-Daemon-6.12-1  perl-HTTP-Date-6.05-1
              perl-HTTP-Message-6.35-1  perl-HTTP-Negotiate-6.01-2  perl-IO-HTML-1.004-1  perl-IO-Socket-SSL-2.072-1
              perl-IO-Stringy-2.113-1  perl-LWP-MediaTypes-6.04-1  perl-MIME-tools-5.509-1  perl-MailTools-2.21-1
              perl-Net-HTTP-6.21-1  perl-Net-SMTP-SSL-1.04-1  perl-Net-SSLeay-1.90-1  perl-TermReadKey-2.38-2  perl-TimeDate-2.33-1
              perl-Try-Tiny-0.31-1  perl-URI-5.10-1  perl-WWW-RobotRules-6.02-2  perl-libwww-6.57-1  vim-8.2.3582-1  git-2.34.1-2

Total Download Size:   16.41 MiB
Total Installed Size:  92.11 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 perl-Net-SSLeay-1.90-1-x86_64                       236.3 KiB   193 KiB/s 00:01 [#############################################] 100%
 perl-MIME-tools-5.509-1-any                         194.9 KiB   414 KiB/s 00:00 [#############################################] 100%
 heimdal-7.7.0-3-x86_64                              430.2 KiB   221 KiB/s 00:02 [#############################################] 100%
 git-2.34.1-2-x86_64                                   5.5 MiB  1337 KiB/s 00:04 [#############################################] 100%
 perl-IO-Socket-SSL-2.072-1-any                      153.2 KiB  59.9 KiB/s 00:03 [#############################################] 100%
 vim-8.2.3582-1-x86_64                                 8.0 MiB  1753 KiB/s 00:05 [#############################################] 100%
 perl-HTML-Parser-3.76-1-x86_64                       80.5 KiB   348 KiB/s 00:00 [#############################################] 100%
 perl-libwww-6.57-1-any                              128.0 KiB  48.7 KiB/s 00:03 [#############################################] 100%
 openssh-8.8p1-1-x86_64                              898.9 KiB   182 KiB/s 00:05 [#############################################] 100%
 perl-MailTools-2.21-1-any                            81.0 KiB  94.5 KiB/s 00:01 [#############################################] 100%
 perl-IO-Stringy-2.113-1-any                          66.4 KiB   120 KiB/s 00:01 [#############################################] 100%
 perl-URI-5.10-1-any                                  76.4 KiB  88.1 KiB/s 00:01 [#############################################] 100%
 perl-HTTP-Message-6.35-1-any                         75.9 KiB  92.9 KiB/s 00:01 [#############################################] 100%
 perl-TimeDate-2.33-1-any                             55.2 KiB  75.4 KiB/s 00:01 [#############################################] 100%
 perl-Authen-SASL-2.16-2-any                          42.4 KiB   229 KiB/s 00:00 [#############################################] 100%
 perl-Convert-BinHex-1.125-1-any                      42.8 KiB  93.1 KiB/s 00:00 [#############################################] 100%
 perl-HTTP-Daemon-6.12-1-any                          39.6 KiB   243 KiB/s 00:00 [#############################################] 100%
 perl-LWP-MediaTypes-6.04-1-any                       40.7 KiB   128 KiB/s 00:00 [#############################################] 100%
 perl-Error-0.17029-1-any                             39.4 KiB  86.3 KiB/s 00:00 [#############################################] 100%
 perl-TermReadKey-2.38-2-x86_64                       42.0 KiB  44.5 KiB/s 00:01 [#############################################] 100%
 perl-HTTP-Date-6.05-1-any                            28.9 KiB  42.3 KiB/s 00:01 [#############################################] 100%
 perl-Encode-Locale-1.05-1-any                        24.3 KiB  32.2 KiB/s 00:01 [#############################################] 100%
 perl-HTTP-Cookies-6.10-1-any                         23.4 KiB   183 KiB/s 00:00 [#############################################] 100%
 perl-Net-SMTP-SSL-1.04-1-any                         18.4 KiB   128 KiB/s 00:00 [#############################################] 100%
 perl-Try-Tiny-0.31-1-any                             19.8 KiB   125 KiB/s 00:00 [#############################################] 100%
 perl-Net-HTTP-6.21-1-any                             23.9 KiB  28.6 KiB/s 00:01 [#############################################] 100%
 perl-IO-HTML-1.004-1-any                             16.1 KiB  81.1 KiB/s 00:00 [#############################################] 100%
 perl-WWW-RobotRules-6.02-2-any                       12.2 KiB  69.2 KiB/s 00:00 [#############################################] 100%
 perl-File-Listing-6.14-1-any                         11.7 KiB  58.6 KiB/s 00:00 [#############################################] 100%
 perl-HTTP-Negotiate-6.01-2-any                       11.4 KiB  44.1 KiB/s 00:00 [#############################################] 100%
 perl-Clone-0.45-2-x86_64                             11.3 KiB  7.62 KiB/s 00:01 [#############################################] 100%
 perl-HTML-Tagset-3.20-2-any                          10.3 KiB  3.77 KiB/s 00:03 [#############################################] 100%
 Total (32/32)                                        16.4 MiB  1284 KiB/s 00:13 [#############################################] 100%
(32/32) checking keys in keyring                                                 [#############################################] 100%
(32/32) checking package integrity                                               [#############################################] 100%
(32/32) loading package files                                                    [#############################################] 100%
(32/32) checking for file conflicts                                              [#############################################] 100%
(32/32) checking available disk space                                            [#############################################] 100%
:: Processing package changes...
( 1/32) installing vim                                                           [#############################################] 100%
( 2/32) installing heimdal                                                       [#############################################] 100%
( 3/32) installing openssh                                                       [#############################################] 100%
( 4/32) installing perl-Error                                                    [#############################################] 100%
( 5/32) installing perl-Authen-SASL                                              [#############################################] 100%
( 6/32) installing perl-Encode-Locale                                            [#############################################] 100%
( 7/32) installing perl-HTTP-Date                                                [#############################################] 100%
( 8/32) installing perl-File-Listing                                             [#############################################] 100%
( 9/32) installing perl-HTML-Tagset                                              [#############################################] 100%
(10/32) installing perl-Clone                                                    [#############################################] 100%
(11/32) installing perl-IO-HTML                                                  [#############################################] 100%
(12/32) installing perl-LWP-MediaTypes                                           [#############################################] 100%
(13/32) installing perl-URI                                                      [#############################################] 100%
(14/32) installing perl-HTTP-Message                                             [#############################################] 100%
(15/32) installing perl-HTML-Parser                                              [#############################################] 100%
(16/32) installing perl-HTTP-Cookies                                             [#############################################] 100%
(17/32) installing perl-HTTP-Daemon                                              [#############################################] 100%
(18/32) installing perl-HTTP-Negotiate                                           [#############################################] 100%
(19/32) installing perl-Net-HTTP                                                 [#############################################] 100%
(20/32) installing perl-WWW-RobotRules                                           [#############################################] 100%
(21/32) installing perl-Try-Tiny                                                 [#############################################] 100%
(22/32) installing perl-libwww                                                   [#############################################] 100%
Optional dependencies for perl-libwww
    perl-LWP-Protocol-https: for https:// url schemes
(23/32) installing perl-TimeDate                                                 [#############################################] 100%
(24/32) installing perl-MailTools                                                [#############################################] 100%
(25/32) installing perl-IO-Stringy                                               [#############################################] 100%
(26/32) installing perl-Convert-BinHex                                           [#############################################] 100%
module test... pass.
(27/32) installing perl-MIME-tools                                               [#############################################] 100%
(28/32) installing perl-Net-SSLeay                                               [#############################################] 100%
(29/32) installing perl-IO-Socket-SSL                                            [#############################################] 100%
(30/32) installing perl-Net-SMTP-SSL                                             [#############################################] 100%
(31/32) installing perl-TermReadKey                                              [#############################################] 100%
(32/32) installing git                                                           [#############################################] 100%
Optional dependencies for git
    python: various helper scripts [installed]
    subversion: git svn
$ git clone --recursive https://github.com/NikitaIvanovV/ictree.git
Cloning into 'ictree'...
remote: Enumerating objects: 467, done.
remote: Counting objects: 100% (467/467), done.
remote: Compressing objects: 100% (258/258), done.
remote: Total 467 (delta 296), reused 367 (delta 198), pack-reused 0
Receiving objects: 100% (467/467), 1.07 MiB | 4.90 MiB/s, done.
Resolving deltas: 100% (296/296), done.
Submodule 'c-vector' (https://github.com/eteran/c-vector) registered for path 'c-vector'
Submodule 'termbox2' (https://github.com/termbox/termbox2) registered for path 'termbox2'
Cloning into '/c/Users/tyler/scoop/persist/msys2/home/tyler/ictree/c-vector'...
remote: Enumerating objects: 248, done.
remote: Counting objects: 100% (168/168), done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 248 (delta 86), reused 110 (delta 45), pack-reused 80
Receiving objects: 100% (248/248), 62.09 KiB | 648.00 KiB/s, done.
Resolving deltas: 100% (128/128), done.
Cloning into '/c/Users/tyler/scoop/persist/msys2/home/tyler/ictree/termbox2'...
remote: Enumerating objects: 131, done.
remote: Counting objects: 100% (131/131), done.
remote: Compressing objects: 100% (88/88), done.
remote: Total 131 (delta 63), reused 102 (delta 38), pack-reused 0
Receiving objects: 100% (131/131), 73.96 KiB | 4.93 MiB/s, done.
Resolving deltas: 100% (63/63), done.
Submodule path 'c-vector': checked out '396fb9b6ffff99f204edebaa322d27bfe0c19ba5'
Submodule path 'termbox2': checked out '00c017b261de809400a789ebadccda3059bdecbc'

$ make install

The bug:

cc -c -o build/args.o -std=gnu99 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -I. -Os -Itermbox2 -Ic-vector -MD src/args.c
make: cc: No such file or directory
make: *** [Makefile:71: build/args.o] Error 127
NikitaIvanovV commented 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.

Tyler887 commented 2 years ago

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
NikitaIvanovV commented 2 years ago

Did you cd to ictree directory?

NikitaIvanovV commented 2 years ago

It turned out I forgot to add a file, just pushed a commit with a fix.

Tyler887 commented 2 years ago

Did you cd to ictree 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.

NikitaIvanovV commented 2 years ago

ictree is an external program, it doesn't matter which shell you're using. Did you pull the latest commit and try again?

Tyler887 commented 2 years ago

I've deleted my ictree folder, and cloned the repo at ictree again.

Tyler887 commented 2 years ago

Now this appears:

make: *** No rule to make target 'install'.  Stop.

Edit: Now it works. I forgot to run cd ictree!

Tyler887 commented 2 years ago

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!

NikitaIvanovV commented 2 years ago

ictree is waiting for input, this is why it doesn't lauch. Read README, it has usage examples.