|
From: George S. <geo...@ao...> - 2023-10-25 22:26:21
|
Hi Jonathan,
I tried below
./configure --with-boost-include='/Users/DDD/Library/CloudStorage/Dropbox/QL_INSTALL/BOOST/b2-4.10.1/include/' \
--prefix='/Users/DDD/Library/CloudStorage/Dropbox/QL_INSTALL' \
CXXFLAGS='-O2 -stdlib=libc++ -mmacosx-version-min=10.9' \
LDFLAGS='-stdlib=libc++ -mmacosx-version-min=10.9'
With this I got below error
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '502' is supported by ustar format... yes
checking whether GID '20' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for gawk... (cached) awk
checking for -gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for -g++... no
checking for -c++... no
checking for -gpp... no
checking for -aCC... no
checking for -CC... no
checking for -cxx... no
checking for -cc++... no
checking for -cl.exe... no
checking for -FCC... no
checking for -KCC... no
checking for -RCC... no
checking for -xlC_r... no
checking for -xlC... no
checking for -clang++... no
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh ./config/config.sub failed
zsh: no such file or directory: --prefix=/Users/DDD/Library/CloudStorage/Dropbox/QL_INSTALL
However one strange thing in above error message is the last line. I am pretty sure that the folder ' /Users/DDD/Library/CloudStorage/Dropbox/QL_INSTALL' exists!
I also have xcode installed in my computer.
Any workaround will be helpful.
Thanks,
On Thursday, 26 October 2023 at 03:09:48 GMT+5:30, Jonathan Sweemer <sw...@gm...> wrote:
The ${HOME} in your prefix looks out of place. Can you try removing it?
If that doesn’t fix it then I would try escaping the ampersands in the directory name, or even better renaming the directory.
By the way, the warning message means you can safely remove —with-boost-lib because it’s no longer required.
2023년 10월 26일 (목) 05:13, George Sebastine via QuantLib-users <qua...@li...>님이 작성:
> Hi,
>
> I am following the instructions in https://www.quantlib.org/install/macosx.shtml to install QL in custom folder. So I tried following
>
> ./configure --with-boost-include='/Users/DDD/Library/CloudStorage/Dropbox/AAA & BBB/Programs/QuantLib/QL_INSTALL/BOOST/b2-4.10.1/include/' \
>
> --with-boost-lib='/Users/DDD/Library/CloudStorage/Dropbox/AAA & BBB/Programs/QuantLib/QL_INSTALL/BOOST/b2-4.10.1/lib/' \
>
> --prefix=${HOME}'/Users/DDD/Library/CloudStorage/Dropbox/AAA & BBB/Programs/QuantLib/QL_INSTALL' \
>
> CXXFLAGS='-O2 -stdlib=libc++ -mmacosx-version-min=10.9' \
>
> LDFLAGS='-stdlib=libc++ -mmacosx-version-min=10.9'
>
>
> However with this, I am getting below error
>
> configure: WARNING: unrecognized options: --with-boost-lib
>
> checking for a BSD-compatible install... /usr/bin/install -c
>
> checking whether build environment is sane... configure: error: unsafe absolute working directory name
>
>
> I am using iMac with MacOS version 13.6 (22G120)
>
>
> Could you please guide what went wrong and the correct approach to install QL in some custom folder.
>
>
> Thanks for your time.
>
>
> _______________________________________________
> QuantLib-users mailing list
> Qua...@li...
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>
|