[stephan<strong i="6">@host</strong>:~/cvs/libsass]$ m install PREFIX=$HOME
mkdir /home/stephan/lib
mkdir: cannot create directory โ/home/stephan/libโ: File exists
Makefile:263: recipe for target '/home/stephan/lib' failed
make: *** [/home/stephan/lib] Error 1
์์ ์ ๊ฐ๋จํฉ๋๋ค. mkdir -p
๋์ mkdir
.
์ด๊ฒ์ #1992์ ๊ฐ์ง๋ง ๊ทธ ํฐ์ผ์ ๋ถ๊ฐํญ๋ ฅ์ ์ผ๋ก ๋ซํ ์์ต๋๋ค.
์ถ์ : autotools ์์ฑ ๋น๋๋ฅผ ์ฌ์ฉํ๋ ค๊ณ ํ ๋ autoconf
๋ฅผ ์คํํ์ฌ configure.ac
๋ฅผ configure
๋ก ๋ณํํ๋ฉด ๊ฒฐ๊ณผ ./configure
๊ฐ ๋ค์๊ณผ ๊ฐ์ ์ด์ ๋ก ์คํจํฉ๋๋ค.
[stephan<strong i="18">@host</strong>:~/cvs/libsass]$ ./configure --prefix=$HOME
configure: error: cannot find install-sh, install.sh, or shtool in script "."/script
๋ฐ๋ผ์ autotools(์ผ๋ช GNU "Auto, my ass!" Tools)์ ์ํด ์์ฑ๋ ๊ฒ์ด ์๋๋ผ ํธ๋ฆฌ์ ์ฒดํฌ์ธ๋ ๋ฉ์ดํฌํ์ผ์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
mkdir์ ์ฌ์ฉํ๋ ๊ฒ์ด ์ฌ๋ฌ ๋ฒ ์ ๊ธฐ๋์์ผ๋ฉฐ ๊ทธ๋ ์ง ์๊ธฐ ๋๋ฌธ์ ๊ฑฐ๋ถ๋์์ต๋๋ค.
๊ฐ์ง๊ณ ๋ค๋ ์ ์๋. ์ฐ๋ฆฌ๋ ์ด์ ๊ฐ๋ฅํ ์๋ฃจ์
์ ์ด๋ ค ์์ต๋๋ค.
2018๋ 11์ 12์ผ ์์์ผ ์คํ 6์ 55๋ถ Stephan Beal < [email protected] ์์ฑ:
$(PREFIX)/lib๊ฐ ์ด๋ฏธ ์กด์ฌํ๊ธฐ ๋๋ฌธ์ ์ค์น๊ฐ ์คํจํฉ๋๋ค.
[ stephan@host :~/cvs/libsass]$ m ์ค์น PREFIX=$HOME
mkdir /home/stephan/lib
mkdir: '/home/stephan/lib' ๋๋ ํ ๋ฆฌ๋ฅผ ์์ฑํ ์ ์์: ํ์ผ์ด ์กด์ฌํฉ๋๋ค.
Makefile:263 : ๋์ '/home/stephan/lib'์ ๋ํ ๋ ์ํผ๊ฐ ์คํจํ์ต๋๋ค.
make: * [/home/stephan/lib] ์ค๋ฅ 1์์ ์ ๊ฐ๋จํฉ๋๋ค. mkdir ๋์ mkdir -p๋ฅผ ์ฌ์ฉํ์ญ์์ค.
์ด๊ฒ์ #1992 https://github.com/sass/libsass/issues/1992 ์ ๋์ผํฉ๋๋ค.
๊ทธ๋ฌ๋ ๊ทธ ํฐ์ผ์ ์ค๋ช ํ ์ ์์ ์ ๋๋ก ๋ซํ ์์ต๋๋ค.์ถ์ : autotools ์์ฑ ๋น๋๋ฅผ ์ฌ์ฉํ๋ ค๊ณ ํ ๋ autoconf๋ฅผ ์คํํ์ฌ
configure.ac๋ฅผ ๊ตฌ์ฑ์ผ๋ก ๋ณํํ๋ฉด ๊ฒฐ๊ณผ ./configure๊ฐ ์คํจํฉ๋๋ค.
์๋ํ๋ฉด:[ stephan@host :~/cvs/libsass]$ ./configure --prefix=$HOME
๊ตฌ์ฑ: ์ค๋ฅ: ์คํฌ๋ฆฝํธ "."/script์์ install-sh, install.sh ๋๋ shtool์ ์ฐพ์ ์ ์์ต๋๋ค.๋ฐ๋ผ์ ๋๋ ํธ๋ฆฌ์ ์ฒดํฌ์ธ ๋ ๋ฉ์ดํฌ ํ์ผ์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
autotools์ ์ํด ์์ฑ๋ ๊ฒ(GNU "Auto, my ass!" ๋๊ตฌ๋ผ๊ณ ๋ ํจ).โ
์ด ์ค๋ ๋์ ๊ฐ์ ํ๊ธฐ ๋๋ฌธ์ ์ด ๋ฉ์์ง๋ฅผ ๋ฐ๊ณ ์์ต๋๋ค.
์ด ์ด๋ฉ์ผ์ ์ง์ ๋ต์ฅํ๊ณ GitHub์์ ํ์ธํ์ธ์.
https://github.com/sass/libsass/issues/2727 ๋๋ ์ค๋ ๋ ์์๊ฑฐ
https://github.com/notifications/unsubscribe-auth/AAjZWC46FJREYZk3iPIdWpGiuKuKlkJ4ks5uuSlkgaJpZM4YZIEz
.
ํ์คํ mkdir -p
๋ ๋จ์ํ ๋ชจ๋ ํ๋ซํผ์ ์ค์นํ์ง ๋ชปํ๋ ๊ฒ๋ณด๋ค ์ด์์ฑ์ด ๋ ์ข์ต๋๊น?
autotools ๋งค๋ด์ผ์์ ๊ฐ์ ธ์จ ํด๋์ฉ ์๋ฃจ์ ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
libsass ์ฒดํฌ์์์์:
autoreconf --install
...
configure.ac:15: installing 'script/install-sh'
...
[stephan<strong i="7">@host</strong>:~/cvs/libsass]$ l ./script/install-sh
-rwxr-xr-x 1 stephan stephan 15155 Nov 12 10:07 ./script/install-sh
๊ทธ ์ค์น ์คํฌ๋ฆฝํธ๋ ๊ฐ๋ฅํ ํ ์ด์ ๊ฐ๋ฅํฉ๋๋ค. (๊ทธ ํ์ผ์ ์ ์ธํ๊ณ ๋ชจ๋ autoreconf
์ถ๋ ฅ์ ๋ฒ๋ฆฌ๊ณ ํด๋น ํ์ผ์ ์ฒดํฌ์ธํ์ญ์์ค.)
ํฅ๋ฏธ๋กญ๊ฒ๋ mkdir -p
(POSIX mkdir์ ์ํด ๋ช
์์ ์ผ๋ก ์ง์ ๋จ)๋ฅผ ์ฌ์ฉํ์ง๋ง ๋ค์ํ ์ด์์ฑ ๋ฌธ์ ๋ ํด๊ฒฐํฉ๋๋ค.
์ด์์ฑ: ์์ค ์ฝ๋๊ฐ C++0x๋ฅผ ์ฌ์ฉํ๋ฏ๋ก ๋น๊ต์ ์ต๊ทผ ํ๋ซํผ(10๋
๋ฏธ๋ง)์์ ์ปดํ์ผ๋ฉ๋๋ค. ๋๋ ๊ทธ๋ฌํ ๋ชจ๋ ํ๋ซํผ์ด mkdir -p
์ง์ํ๋ค๊ณ ๋ด ์ผ์ชฝ ๊ณ ํ์ ๊ฑธ์์ต๋๋ค.
๋ชจ๋ ๊ฒ์ ์ด์ ์ ๋ชจ๋ ๋ฌธ์์์ ์ฌ๋ฌ ๋ฒ ์์ธํ ์ค๋ช
๋์์ต๋๋ค.
๋ซํ ๋ฌธ์ . ์ฐ๋ฆฌ๋ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ํ๋ณด๋ฅผ ๊ณ ๋ คํ ๊ฒ์
๋๋ค
์ด์ ์ ์ ๊ธฐ๋์์ต๋๋ค.
2018๋ 11์ 12์ผ ์์์ผ ์คํ 8:13 Stephan Beal < [email protected] ์์ฑ:
์ด์์ฑ: ์์ค ์ฝ๋๋ C++0x๋ฅผ ์ฌ์ฉํฉ๋๋ค.
๋น๊ต์ ์ต๊ทผ์ ํ๋ซํผ(10๋ ๋ฏธ๋ง)์์ ์ปดํ์ผํฉ๋๋ค. ๋๋ ๋ด๊ธฐํ ๊ฒ์ด๋ค
๊ทธ๋ฌํ ๋ชจ๋ ํ๋ซํผ์ด mkdir -p๋ฅผ ์ง์ํ๋ค๋ ๋ด ์ผ์ชฝ ๊ณ ํ.โ
๋น์ ์ด ๋๊ธ์ ๋ฌ์๊ธฐ ๋๋ฌธ์ ์ด๊ฒ์ ๋ฐ๋ ๊ฒ์ ๋๋ค.
์ด ์ด๋ฉ์ผ์ ์ง์ ๋ต์ฅํ๊ณ GitHub์์ ํ์ธํ์ธ์.
https://github.com/sass/libsass/issues/2727#issuecomment-437808279 ๋๋ ์์๊ฑฐ
์ค๋ ๋
https://github.com/notifications/unsubscribe-auth/AAjZWDztL9XVhyClKwxTr7QVoEu2Oie3ks5uuTvQgaJpZM4YZIEz
.
@xzyfer ์ข ๋ฃ๋ ๋ฌธ์ ์ ์ฐ๊ฒฐํด ์ฃผ์๊ฒ ์ต๋๊น? #1992๋ ๊ทธ๊ฒ์ ๋ํด ๋ ผ์ํ์ง ์์ต๋๋ค.
mkdir -p
์ง์์ POSIX ์๊ตฌ ์ฌํญ์ด๊ธฐ ๋๋ฌธ์ ๋น ์ด์์ฑ ์ฃผ์ฅ์ ์ดํดํ๊ธฐ ์ํด ํ ๋ก ์ ์ฝ๊ณ ์ถ์ต๋๋ค. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mkdir.html
autoconf
์ํด ์์ฑ๋ ์ค์น ์คํฌ๋ฆฝํธ๋ฅผ ์ฌ์ฉํ์ฌ ํด๊ฒฐ๋์ง _์์_ ์ ํ ์ฌํญ์ ๋ฌด์์
๋๊น? ์ด ํ๋ก์ ํธ๋ autotools
๋ฅผ ์ฌ์ฉํ๋ฏ๋ก ๋๊ตฌ ์งํฉ์ด ์ง์ํ๋ ํ๋ซํผ์ผ๋ก์ ์ด์์ฑ์ด ์ ํ๋ฉ๋๋ค. ๋ฐ๋ผ์ autotool's
์ค์น ์คํฌ๋ฆฝํธ๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ ์ ๊ณต๋ ๋ฉ์ดํฌํ์ผ์ ์ฌ์ฉํ์ฌ ํ๋ก์ ํธ๋ฅผ ๊ตฌ์ถํ ์ ์๋ ๋ชจ๋ ํ๋ซํผ์ ๋ํด ๊ฐ์ฅ ์์ฐ์ค๋ฝ๊ณ ์ด์ ๊ฐ๋ฅํ ์๋ฃจ์
์
๋๋ค.
@sgbeal ์ฌ์ ํ ๋ฌธ์ ๋ฅผ ์ฐพ์ ์ ์์ง๋ง Makefile์ ์์ธํ ์ดํด๋ณด๋ฉด Windows๋ฅผ ์ง์ํ๋ ๊ฒ์ผ๋ก ๋ณด์
๋๋ค. Windows์์ mkdir
์ -p
์ง์ํ์ง ์๋ md
์ ๋ณ์นญ์
๋๋ค.
Windows์ ๋น Windows์์ MKDIR
๋ค๋ฅด๊ฒ ์ค์ ํ๋ PR์ ๋ณด๋ด์๊ฒ ์ต๋๊น?
์์ธํ ๋ด์ฉ์ ์๋์ ์์ต๋๋ค. ๋๋ ๊ทธ ๋ฌธ์ ์ ๋ํด ์ ์์ง๋ ๋ชปํ์ง๋ง ๋๋ ๊ทธ๊ฒ์ด ๊ณ์ํด์ ์ผ์ด๋๋ ๊ฒ์ ๋ณด์๋ค.
https://github.com/sass/libsass/pull/795#discussion_r22396485
https://github.com/sass/libsass/pull/2486
https://github.com/sass/libsass/pull/2109
https://github.com/sass/libsass/issues/1433
https://github.com/sass/libsass/pull/1365#issuecomment -123325642
@glebm "Windows"๊ฐ ๋ฌด์์ ๋๊น?
๋น๋๋ autotools๋ฅผ ์ฌ์ฉํ๋ฉฐ autotools์ ํจ๊ป ๋ฐฐํฌ๋๋ install-sh๋ฅผ "์ ๋ง ์ฌ์ฉํด์ผ" ํฉ๋๋ค. _that_ ์ค์น ํ๋ก๊ทธ๋จ์ด ์ถฉ๋ถํ ์ด์ ๊ฐ๋ฅํ์ง ์์ ๊ฒฝ์ฐ autotools๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ ์์ค๋ ์์ธ์ ๋๋ค.
@sgbeal ์ฒดํฌ ์ธ๋ Makefile์ autotools์ ์ํด ์์ฑ๋์ง ์์ต๋๋ค. autotools๋ฅผ ์ฌ์ฉํ ์ ์์ ๋ ๋น๋ํ๋ ๋์ฒด ๋ฐฉ๋ฒ์ ๋๋ค(์: Ruby ๋๋ Python์ฉ C ํ์ฅ์ ์ํด ์ปดํ์ผํ ๋).
์ด ๊ฒฝ์ฐ "Windows"๋ gcc ๋ฐ gmake๊ฐ ์์ง๋ง CMD์์ ์คํ ์ค์ธ ๊ฒฝ์ฐ์ ๋๋ค(์: Cygwin Bash ๋๋ ์ ์ฌํ POSIX ํ๊ฒฝ๊ณผ ๋ฐ๋).
๊ทธ๋ผ์๋ ๋ถ๊ตฌํ๊ณ ๋ด #2728 PR์ด ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ค๊ณ ์๊ฐํฉ๋๋ค. PR make
๋ ์ด๋ฏธ ์กด์ฌํ๋ ๋๋ ํ ๋ฆฌ๋ฅผ ๋ ์ด์ ๋ง๋ค๋ ค๊ณ ์๋ํ์ง ์์์ผ ํ๊ธฐ ๋๋ฌธ์
๋๋ค.
@xzyfer ๊ฐ์ฌํฉ๋๋ค! ์ด๊ฒ์ ํนํ Windows ํธํ์ฑ์ ๊ดํ ๊ฒ์ด๋ผ๊ณ ์๊ฐํ ๊ฒ ๊ฐ์ต๋๋ค. make
๊ฐ ์ด๋ฏธ ์กด์ฌํ๋ ๋๋ ํ ๋ฆฌ๋ฅผ ์์ฑํ๋ ค๊ณ ์๋ํ์ง ๋ชปํ๋๋ก ํ๋ #2728์ ๋ณด๋์ต๋๋ค.
@glebm ์ง์ฌ์ผ๋ก ์ฌ๊ณผํฉ๋๋ค. 'Windows'๋ ๋ฌด์์ธ๊ฐ'๋ ์์งํ ์ง๋ฌธ์ด ์๋๋ผ