cygwinでtreeコマンドのmakeで失敗。treeコマンドをfindで代用
treeコマンドをfindで代用
treeコマンドをcygwinでmakeしたら、こけてしまい対処のしようがなかったので代用する方法をさがしてみた。
$ make
gcc -s -o tree.exe tree.o strverscmp.o
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -luser32
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lkernel32
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -ladvapi32
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lshell32
collect2: ld returned 1 exit status
Makefile:74: recipe for target `tree' failed
make: *** [tree] Error 1
alias tree='find . -type d -name ".svn" -prune -o -type d -name ".git" -prune -o -type d -print -o -type f -print |sed -ne "1b;s/[^\/]*\//+--/g;s/+--+/| +/g;s/+--+/| +/g;s/+--|/| |/g;p"'