[yt-dev] Issue #573: The install script breaks if CC is set to a full path on OS X (yt_analysis/yt)
Nathan Goldbaum
issues-reply at bitbucket.org
Tue May 21 11:45:05 PDT 2013
New issue 573: The install script breaks if CC is set to a full path on OS X
https://bitbucket.org/yt_analysis/yt/issue/573/the-install-script-breaks-if-cc-is-set-to
Nathan Goldbaum:
If someone sets CC to be a full path:
```
#!bash
export CC=/usr/bin/gcc
```
The install script will fail due to an invocation of sed:
```
#!bash
Installing BZLIB
sed: 1: "s/CC=gcc/CC=/usr/bin/gcc/
": bad flag in substitute command: 'u'
********************************************
FAILURE REPORT:
********************************************
chmod a+r /Users/goldbaum/Desktop/yt-x86_64/man/man1/bzmore.1
chmod a+r /Users/goldbaum/Desktop/yt-x86_64/man/man1/bzdiff.1
echo ".so man1/bzgrep.1" > /Users/goldbaum/Desktop/yt-x86_64/man/man1/bzegrep.1
echo ".so man1/bzgrep.1" > /Users/goldbaum/Desktop/yt-x86_64/man/man1/bzfgrep.1
echo ".so man1/bzmore.1" > /Users/goldbaum/Desktop/yt-x86_64/man/man1/bzless.1
echo ".so man1/bzdiff.1" > /Users/goldbaum/Desktop/yt-x86_64/man/man1/bzcmp.1
gcc -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
ld: unknown option: -soname
collect2: ld returned 1 exit status
make: *** [all] Error 1
********************************************
********************************************
Failure. Check /Users/goldbaum/Desktop/yt-x86_64/yt_install.log. The last 10 lines are above.
```
This could be fixed by using `|` as a delimiter instead of `\` in the sed call. This appears to not be an issue on linux, so I think this is a problem with BSD sed versus GNU sed.
Responsible: ngoldbaum
More information about the yt-dev
mailing list