How to build the example

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to build the example

Y.Wang
Hi All,

I am new here and not very familiar with the C++ building under Linux yet. I tried to rebuild the given "Bonds.cpp" under "/QuantLib/QuantLib-0.9.7/Examples" by using command "./Makefile". But it doesn't work. The error message is given below. Can somebody help me through? Thanks a lot!

./Makefile: line 17: srcdir: command not found
./Makefile: line 18: top_srcdir: command not found
./Makefile: line 20: datadir: command not found
./Makefile: line 20: pkgdatadir: command not found
./Makefile: line 21: libdir: command not found
./Makefile: line 21: pkglibdir: command not found
./Makefile: line 22: includedir: command not found
./Makefile: line 22: pkgincludedir: command not found
./Makefile: line 23: top_builddir: command not found
./Makefile: line 24: PATH_SEPARATOR: command not found
./Makefile: line 24: am__cd: command not found
./Makefile: line 25: INSTALL: command not found
./Makefile: line 26: install_sh: command not found
./Makefile: line 26: install_sh_DATA: command not found
./Makefile: line 27: install_sh: command not found
./Makefile: line 27: install_sh_PROGRAM: command not found
./Makefile: line 28: install_sh: command not found
./Makefile: line 28: install_sh_SCRIPT: command not found
./Makefile: line 29: INSTALL_DATA: command not found
./Makefile: line 29: INSTALL_HEADER: command not found
./Makefile: line 30: program_transform_name: command not found
./Makefile: line 30: transform: command not found
./Makefile: line 31: NORMAL_INSTALL: command not found
./Makefile: line 32: PRE_INSTALL: command not found
./Makefile: line 33: POST_INSTALL: command not found
./Makefile: line 34: NORMAL_UNINSTALL: command not found
./Makefile: line 35: PRE_UNINSTALL: command not found
./Makefile: line 36: POST_UNINSTALL: command not found
./Makefile: line 37: build_triplet: command not found
./Makefile: line 38: host_triplet: command not found
./Makefile: line 40: EXEEXT: command not found
./Makefile: line 40: noinst_PROGRAMS: command not found
./Makefile: line 41: subdir: command not found
./Makefile: line 42: srcdir: command not found
./Makefile: line 42: srcdir: command not found
./Makefile: line 42: DIST_COMMON: command not found
./Makefile: line 43: top_srcdir: command not found
./Makefile: line 43: ACLOCAL_M4: command not found
./Makefile: line 44: top_srcdir: command not found
./Makefile: line 44: top_srcdir: command not found
./Makefile: line 44: am__aclocal_m4_deps: command not found
./Makefile: line 46: am__aclocal_m4_deps: command not found
./Makefile: line 46: CONFIGURE_DEPENDENCIES: command not found
./Makefile: line 46: ACLOCAL_M4: command not found
./Makefile: line 46: am__configure_deps: command not found
./Makefile: line 48: install_sh: command not found
./Makefile: line 48: mkinstalldirs: command not found
./Makefile: line 49: top_builddir: command not found
./Makefile: line 49: CONFIG_HEADER: command not found
./Makefile: line 50: CONFIG_CLEAN_FILES: command not found
./Makefile: line 51: DESTDIR: command not found
./Makefile: line 51: bindir: command not found
./Makefile: line 51: am__installdirs: command not found
./Makefile: line 52: INSTALL_PROGRAM: command not found
./Makefile: line 52: binPROGRAMS_INSTALL: command not found
./Makefile: line 53: bin_PROGRAMS: command not found
./Makefile: line 53: noinst_PROGRAMS: command not found
./Makefile: line 53: PROGRAMS: command not found
./Makefile: line 54: OBJEXT: command not found
./Makefile: line 54: am_Bonds_OBJECTS: command not found
./Makefile: line 55: am_Bonds_OBJECTS: command not found
./Makefile: line 55: Bonds_OBJECTS: command not found
./Makefile: line 56: Bonds_DEPENDENCIES: command not found
./Makefile: line 57: srcdir: command not found
./Makefile: line 57: top_builddir: command not found
./Makefile: line 57: DEFAULT_INCLUDES: command not found
./Makefile: line 58: SHELL: command not found
./Makefile: line 58: top_srcdir: command not found
./Makefile: line 58: depcomp: command not found
./Makefile: line 59: am__depfiles_maybe: command not found
./Makefile: line 60: CXX: command not found
./Makefile: line 60: DEFS: command not found
./Makefile: line 60: DEFAULT_INCLUDES: command not found
./Makefile: line 60: INCLUDES: command not found
./Makefile: line 60: AM_CPPFLAGS: command not found
./Makefile: line 60: CPPFLAGS: command not found
./Makefile: line 60: AM_CXXFLAGS: command not found
./Makefile: line 60: CXXFLAGS: command not found
./Makefile: line 60: CXXCOMPILE: command not found
./Makefile: line 62: LIBTOOL: command not found
./Makefile: line 62: CXX: command not found
./Makefile: line 62: DEFS: command not found
./Makefile: line 62: DEFAULT_INCLUDES: command not found
./Makefile: line 62: INCLUDES: command not found
./Makefile: line 62: AM_CPPFLAGS: command not found
./Makefile: line 62: CPPFLAGS: command not found
./Makefile: line 62: AM_CXXFLAGS: command not found
./Makefile: line 62: CXXFLAGS: command not found
./Makefile: line 62: LTCXXCOMPILE: command not found
./Makefile: line 65: CXX: command not found
./Makefile: line 65: CXXLD: command not found
./Makefile: line 66: LIBTOOL: command not found
./Makefile: line 66: CXXLD: command not found
./Makefile: line 66: AM_CXXFLAGS: command not found
./Makefile: line 66: CXXFLAGS: command not found
./Makefile: line 66: AM_LDFLAGS: command not found
./Makefile: line 66: LDFLAGS: command not found
./Makefile: line 66: CXXLINK: command not found
./Makefile: line 68: Bonds_SOURCES: command not found
./Makefile: line 68: SOURCES: command not found
./Makefile: line 69: Bonds_SOURCES: command not found
./Makefile: line 69: DIST_SOURCES: command not found
./Makefile: line 70: ETAGS: command not found
./Makefile: line 71: CTAGS: command not found
./Makefile: line 72: DIST_COMMON: command not found
./Makefile: line 72: DIST_SOURCES: command not found
./Makefile: line 72: TEXINFOS: command not found
./Makefile: line 72: EXTRA_DIST: command not found
./Makefile: line 72: DISTFILES: command not found
./Makefile: line 73: ACLOCAL: command not found
./Makefile: line 74: AMDEP_FALSE: command not found
./Makefile: line 75: AMDEP_TRUE: command not found
./Makefile: line 76: AMTAR: command not found
./Makefile: line 77: AR: command not found
./Makefile: line 78: AUTOCONF: command not found
./Makefile: line 79: AUTOHEADER: command not found
./Makefile: line 80: AUTOMAKE: command not found
./Makefile: line 81: AUTO_BENCHMARK_FALSE: command not found
./Makefile: line 82: AUTO_BENCHMARK_TRUE: command not found
./Makefile: line 83: AUTO_EXAMPLES_FALSE: command not found
./Makefile: line 84: AUTO_EXAMPLES_TRUE: command not found
./Makefile: line 85: AWK: command not found
./Makefile: line 86: BOOST_INCLUDE: command not found
./Makefile: line 87: BOOST_LIB: command not found
./Makefile: line 88: BOOST_UNIT_TEST_DEFINE: command not found
./Makefile: line 89: BOOST_UNIT_TEST_FOUND_FALSE: command not found
./Makefile: line 90: BOOST_UNIT_TEST_FOUND_TRUE: command not found
./Makefile: line 91: BOOST_UNIT_TEST_LIB: command not found
./Makefile: line 92: BOOST_UNIT_TEST_MAIN_CXXFLAGS: command not found
./Makefile: line 93: CC: command not found
./Makefile: line 94: CCDEPMODE: command not found
./Makefile: line 95: CFLAGS: command not found
./Makefile: line 96: CPP: command not found
./Makefile: line 97: CPPFLAGS: command not found
./Makefile: line 98: CXX: command not found
./Makefile: line 99: CXXCPP: command not found
./Makefile: line 100: CXXDEPMODE: command not found
./Makefile: line 101: CXXFLAGS: command not found
./Makefile: line 102: CYGPATH_W: command not found
./Makefile: line 103: DEFS: command not found
./Makefile: line 104: DEPDIR: command not found
./Makefile: line 105: DOXYGEN: command not found
./Makefile: line 106: DSYMUTIL: command not found
./Makefile: line 107: DUMPBIN: command not found
./Makefile: line 108: DVIPS: command not found
./Makefile: line 109: ECHO_C: command not found
./Makefile: line 110: ECHO_N: command not found
./Makefile: line 111: ECHO_T: command not found
./Makefile: line 112: EGREP: command not found
./Makefile: line 113: EMACS: command not found
./Makefile: line 114: EMACSLOADPATH: command not found
./Makefile: line 115: EMACS_FOUND_FALSE: command not found
./Makefile: line 116: EMACS_FOUND_TRUE: command not found
./Makefile: line 117: ENABLE_STATIC_FALSE: command not found
./Makefile: line 118: ENABLE_STATIC_TRUE: command not found
./Makefile: line 119: EXEEXT: command not found
./Makefile: line 120: FGREP: command not found
./Makefile: line 121: GREP: command not found
./Makefile: line 122: INSTALL_DATA: command not found
./Makefile: line 123: INSTALL_PROGRAM: command not found
./Makefile: line 124: INSTALL_SCRIPT: command not found
./Makefile: line 125: install_sh: command not found
./Makefile: line 125: INSTALL_STRIP_PROGRAM: command not found
./Makefile: line 126: LATEX: command not found
./Makefile: line 127: LD: command not found
./Makefile: line 128: LDFLAGS: command not found
./Makefile: line 129: LIBOBJS: command not found
./Makefile: line 130: LIBS: command not found
./Makefile: line 131: SHELL: command not found
./Makefile: line 131: top_builddir: command not found
./Makefile: line 131: LIBTOOL: command not found
./Makefile: line 132: LIPO: command not found
./Makefile: line 133: LN_S: command not found
./Makefile: line 134: LTLIBOBJS: command not found
./Makefile: line 135: MAKEINDEX: command not found
./Makefile: line 136: MAKEINFO: command not found
./Makefile: line 137: NM: command not found
./Makefile: line 138: NMEDIT: command not found
./Makefile: line 139: OBJEXT: command not found
./Makefile: line 140: OTOOL: command not found
./Makefile: line 141: OTOOL64: command not found
./Makefile: line 142: PACKAGE: command not found
./Makefile: line 143: PACKAGE_BUGREPORT: command not found
./Makefile: line 144: PACKAGE_NAME: command not found
./Makefile: line 145: PACKAGE_STRING: command not found
./Makefile: line 146: PACKAGE_TARNAME: command not found
./Makefile: line 147: PACKAGE_VERSION: command not found
./Makefile: line 148: PATH_SEPARATOR: command not found
./Makefile: line 149: PDFLATEX: command not found
./Makefile: line 150: RANLIB: command not found
./Makefile: line 151: SED: command not found
./Makefile: line 152: SET_MAKE: command not found
./Makefile: line 153: SHELL: command not found
./Makefile: line 154: STRIP: command not found
./Makefile: line 155: VERSION: command not found
./Makefile: line 156: ac_ct_CC: command not found
./Makefile: line 157: ac_ct_CXX: command not found
./Makefile: line 158: ac_ct_DUMPBIN: command not found
./Makefile: line 159: am__fastdepCC_FALSE: command not found
./Makefile: line 160: am__fastdepCC_TRUE: command not found
./Makefile: line 161: am__fastdepCXX_FALSE: command not found
./Makefile: line 162: am__fastdepCXX_TRUE: command not found
./Makefile: line 163: am__include: command not found
./Makefile: line 164: am__leading_dot: command not found
./Makefile: line 165: am__quote: command not found
./Makefile: line 166: am__tar: command not found
./Makefile: line 167: am__untar: command not found
./Makefile: line 168: bindir: command not found
./Makefile: line 169: build: command not found
./Makefile: line 170: build_alias: command not found
./Makefile: line 171: build_cpu: command not found
./Makefile: line 172: build_os: command not found
./Makefile: line 173: build_vendor: command not found
./Makefile: line 174: datadir: command not found
./Makefile: line 175: datarootdir: command not found
./Makefile: line 176: docdir: command not found
./Makefile: line 177: dvidir: command not found
./Makefile: line 178: exec_prefix: command not found
host: couldn't get address for 'x86_64-unknown-linux-gnu': not found
./Makefile: line 180: host_alias: command not found
./Makefile: line 181: host_cpu: command not found
./Makefile: line 182: host_os: command not found
./Makefile: line 183: host_vendor: command not found
./Makefile: line 184: htmldir: command not found
./Makefile: line 185: includedir: command not found
./Makefile: line 186: infodir: command not found
./Makefile: line 187: install_sh: command not found
./Makefile: line 188: libdir: command not found
./Makefile: line 189: libexecdir: command not found
./Makefile: line 190: lispdir: command not found
./Makefile: line 191: localedir: command not found
./Makefile: line 192: localstatedir: command not found
./Makefile: line 193: lt_ECHO: command not found
./Makefile: line 194: mandir: command not found
./Makefile: line 195: mkdir_p: command not found
./Makefile: line 196: oldincludedir: command not found
./Makefile: line 197: pdfdir: command not found
./Makefile: line 198: prefix: command not found
./Makefile: line 199: program_transform_name: command not found
./Makefile: line 200: psdir: command not found
./Makefile: line 201: sbindir: command not found
./Makefile: line 202: sharedstatedir: command not found
./Makefile: line 203: sysconfdir: command not found
./Makefile: line 204: target_alias: command not found
./Makefile: line 205: AM_CPPFLAGS: command not found
./Makefile: line 207: Bonds_SOURCES: command not found
./Makefile: line 208: Bonds_LDADD: command not found
./Makefile: line 209: EXTRA_DIST: command not found
./Makefile: line 216: all:: command not found
./Makefile: line 218: .SUFFIXES:: command not found
./Makefile: line 219: .SUFFIXES:: command not found
./Makefile: line 220: srcdir: command not found
./Makefile: line 220: srcdir: command not found
./Makefile: line 220: am__configure_deps: command not found
./Makefile: line 220: /Makefile.in:: No such file or directory
./Makefile: line 221: syntax error near unexpected token `do'
./Makefile: line 221: ` @for dep in $?; do \'



------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build the example

Luigi Ballabio
On Mon, 2009-06-29 at 14:08 +0100, Y.Wang wrote:
> I am new here and not very familiar with the C++ building under Linux
> yet. I tried to rebuild the given "Bonds.cpp" under
> "/QuantLib/QuantLib-0.9.7/Examples" by using command "./Makefile". But
> it doesn't work.

>From your QuantLib-0.9.7 directory:

./configure
make


Luigi


--

Within C++, there is a much smaller and cleaner language struggling to
get out.
-- Bjarne Stroustrup



------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: How to build the example

Bojan Nikolic
In reply to this post by Y.Wang

You need to execute the command "make" rather than the Makefile
itself.

So just type

> make

on the command line.

Then look at the documentation:

http://www.gnu.org/software/make/

!



--
Bojan Nikolic          ||          http://www.bnikolic.co.uk

------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users