Installation ginac(1.4) + cln(1.1.13) on powermac
Hi to all, because octave can't install symbolic package, I have tried to install ginac on powermac G4 v. 10.4.10. The ginac configure script ends with: checking for pkg-config... /sw/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for CLN... configure: error: Package requirements (cln >= 1.1.6) were not met. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively you may set the CLN_CFLAGS and CLN_LIBS environment variables to avoid the need to call pkg-config. See the pkg-config man page for more details. ________________________ I have no experience with pkg-config, so I decided to use environments variables bash shell: declare -x CLN_CFLAGS="-I/usr/local/include/cln" declare -x CLN_ LIBS="-L/usr/local/libs/ -lcln" for installed cln 1.1.13 which is definitely greater (newer) as 1.1.6. However, this does not work. Can anyone tell to me, how to set the variables above. Or can anyone give a pkg file to handle this problem? Sincerely, Hans-Jürgen Greif
Hello! On Sat, Sep 08, 2007 at 04:35:04PM +0200, Hans-Jürgen Greif wrote:
because octave can't install symbolic package, I have tried to install ginac on powermac G4 v. 10.4.10.
uname -s, please?
The ginac configure script ends with:
checking for pkg-config... /sw/bin/pkg-config
I guess it is Mac OS X, but it is better to explicitly state what OS do you use.
checking pkg-config is at least version 0.9.0... yes checking for CLN... configure: error: Package requirements (cln >= 1.1.6) were not met. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively you may set the CLN_CFLAGS and CLN_LIBS environment variables to avoid the need to call pkg-config. See the pkg-config man page for more details. ________________________
I have no experience with pkg-config, so I decided to use environments variables bash shell:
declare -x CLN_CFLAGS="-I/usr/local/include/cln" declare -x CLN_ LIBS="-L/usr/local/libs/ -lcln"
This should have been CLN_LIBS, but I suppose this is a copy/paste error.
for installed cln 1.1.13 which is definitely greater (newer) as 1.1.6.
However, this does not work. Can anyone tell to me, how to set the variables above.
Could you please post your config.log file? It should be in the build directory, most likely the top of the GiNaC source tree. Best regards, Alexei -- All science is either physics or stamp collecting.
Hans-Jürgen, You might want to pass CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib it works for me. On Sep 8, 2007, at 11:05 AM, Sheplyakov Alexei wrote:
Hello!
On Sat, Sep 08, 2007 at 04:35:04PM +0200, Hans-Jürgen Greif wrote:
because octave can't install symbolic package, I have tried to install ginac on powermac G4 v. 10.4.10.
uname -s, please?
The ginac configure script ends with:
checking for pkg-config... /sw/bin/pkg-config
I guess it is Mac OS X, but it is better to explicitly state what OS do you use.
checking pkg-config is at least version 0.9.0... yes checking for CLN... configure: error: Package requirements (cln >= 1.1.6) were not met. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively you may set the CLN_CFLAGS and CLN_LIBS environment variables to avoid the need to call pkg-config. See the pkg-config man page for more details. ________________________
I have no experience with pkg-config, so I decided to use environments variables bash shell:
declare -x CLN_CFLAGS="-I/usr/local/include/cln" declare -x CLN_ LIBS="-L/usr/local/libs/ -lcln"
This should have been CLN_LIBS, but I suppose this is a copy/paste error.
for installed cln 1.1.13 which is definitely greater (newer) as 1.1.6.
However, this does not work. Can anyone tell to me, how to set the variables above.
Could you please post your config.log file? It should be in the build directory, most likely the top of the GiNaC source tree.
Best regards, Alexei
Marius -- Marius Schamschula, Alabama A & M University, Department of Physics The Center for Hydrology Soil Climatology and Remote Sensing http://optics.physics.aamu.edu/ - http://www.physics.aamu.edu/ http://wx.aamu.edu/ - http://www.aamu.edu/hscars/
Hallo Marius Schamschula, Your ansatz with CPPFLAGS... produces many errors. These errors don't appear without these setting. I have reinstalled cln and see the following output of cln installation: /usr/bin/install -c .libs/libcln.a /usr/local/lib/libcln.a ranlib /usr/local/lib/libcln.a ranlib: file: /usr/local/lib/libcln.a(cl_low_mul.o) has no symbols chmod 644 /usr/local/lib/libcln.a ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable during execution See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- mkdir -p /usr/local/include/cln /usr/bin/install -c -m 644 ../include/cln/*.h /usr/local/include/cln /usr/bin/install -c -m 644 ../include/cln/*.h /usr/local/include/cln cd tests && make install make[1]: Nothing to be done for `install'. cd benchmarks && make install make[1]: Nothing to be done for `install'. cd examples && make install make[1]: Nothing to be done for `install'. cd doc && make install mkdir -p /usr/local/share mkdir -p /usr/local/share/info mkdir -p /usr/local/share/html mkdir -p /usr/local/share/dvi /usr/bin/install -c -m 644 ./cln.info /usr/local/share/info/cln.info install-info --info-dir=/usr/local/share/info /usr/local/share/info/ cln.info /usr/bin/install -c -m 644 ./cln_*.html /usr/local/share/html /usr/bin/install -c -m 644 ./cln.dvi /usr/local/share/dvi/cln.dvi /usr/bin/install -c cln-config /usr/local/bin/cln-config /usr/bin/install -c -m 644 cln-config.1 /usr/local/share/man/man1/cln- config.1 /usr/bin/install -c -m 644 ./cln.m4 /usr/local/share/aclocal/cln.m4 /usr/bin/install -c -m 644 cln.pc /usr/local/lib/pkgconfig/cln.pc Perhaps the remark "Libraries have been installed in:" explains the problem of ginac not finding the library cln. Any hints available? Hans-Jürgen Greif Am 09.09.2007 um 02:17 schrieb Marius Schamschula:
Hans-Jürgen,
You might want to pass
CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
it works for me.
On Sep 8, 2007, at 11:05 AM, Sheplyakov Alexei wrote:
Hello!
On Sat, Sep 08, 2007 at 04:35:04PM +0200, Hans-Jürgen Greif wrote:
because octave can't install symbolic package, I have tried to install ginac on powermac G4 v. 10.4.10.
uname -s, please?
The ginac configure script ends with:
checking for pkg-config... /sw/bin/pkg-config
I guess it is Mac OS X, but it is better to explicitly state what OS do you use.
checking pkg-config is at least version 0.9.0... yes checking for CLN... configure: error: Package requirements (cln >= 1.1.6) were not met. Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively you may set the CLN_CFLAGS and CLN_LIBS environment variables to avoid the need to call pkg-config. See the pkg-config man page for more details. ________________________
I have no experience with pkg-config, so I decided to use environments variables bash shell:
declare -x CLN_CFLAGS="-I/usr/local/include/cln" declare -x CLN_ LIBS="-L/usr/local/libs/ -lcln"
This should have been CLN_LIBS, but I suppose this is a copy/paste error.
for installed cln 1.1.13 which is definitely greater (newer) as 1.1.6.
However, this does not work. Can anyone tell to me, how to set the variables above.
Could you please post your config.log file? It should be in the build directory, most likely the top of the GiNaC source tree.
Best regards, Alexei
Marius -- Marius Schamschula, Alabama A & M University, Department of Physics
The Center for Hydrology Soil Climatology and Remote Sensing http://optics.physics.aamu.edu/ - http://www.physics.aamu.edu/ http://wx.aamu.edu/ - http://www.aamu.edu/hscars/
_______________________________________________ GiNaC-list mailing list GiNaC-list@ginac.de https://www.cebix.net/mailman/listinfo/ginac-list
Hi! On Sun, Sep 09, 2007 at 11:03:43AM +0200, Hans-Jürgen Greif wrote:
Your ansatz with CPPFLAGS... produces many errors.
Interesting. Setting CPPFLAGS to /usr/local/include should not have done any harm (I doubt it would help, though).
These errors don't appear without these setting.
What kind of errors? Are those messages top secret? [libtool boilerplate]
Any hints available?
It would be nice to see the actual error message from the config.log file. Otherwise it is very difficult to give any useful advice. Is your config.log top secret too? Best regards, Alexei -- All science is either physics or stamp collecting.
Dear Sheplyakov Alexei, here you have some config.log without/with settings of CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" This time I work on another G4 macosx 10.4.10 system. You are right on this system I haven't got error messages from ginac configure. But every-time time the same output: checking for CLN... configure: error: Package requirements (cln >= 1.1.6) were not met. Sincerely, Hans-Jürgen Greif Am 09.09.2007 um 11:49 schrieb Sheplyakov Alexei:
Hi!
On Sun, Sep 09, 2007 at 11:03:43AM +0200, Hans-Jürgen Greif wrote:
Your ansatz with CPPFLAGS... produces many errors.
Interesting. Setting CPPFLAGS to /usr/local/include should not have done any harm (I doubt it would help, though).
These errors don't appear without these setting.
What kind of errors? Are those messages top secret?
[libtool boilerplate]
Any hints available?
It would be nice to see the actual error message from the config.log file. Otherwise it is very difficult to give any useful advice. Is your config.log top secret too?
Best regards, Alexei
-- All science is either physics or stamp collecting.
_______________________________________________ GiNaC-list mailing list GiNaC-list@ginac.de https://www.cebix.net/mailman/listinfo/ginac-list
Hi! On Sun, Sep 09, 2007 at 01:00:47PM +0200, Hans-Jürgen Greif wrote:
here you have some config.log without/with settings of
CPPFLAGS="-I/usr/local/include"
LDFLAGS="-L/usr/local/lib"
Thanks.
This time I work on another G4 macosx 10.4.10 system. You are right on this system I haven't got error messages from ginac configure. But every-time time the same output:
checking for CLN... configure: error: Package requirements (cln >= 1.1.6) were not met.
It also gives an adivice: "Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix." The manual page of pkg-config says "pkg-config retrieves information about packages from special metadata files. These files are named after the package, with the extension .pc. By default, pkg-config looks in the directory prefix/lib/pkgconfig for these files; it will also look in the colon-separated list of directories specified by the PKG_CONFIG_PATH environment variable." So, probably you need to do this: PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --foo --bar I'm not sure if this will help, I'd expect /usr/local/lib/pkgconfig directory to be in the "standard" search path of pkg-config. But may be it is not on Mac OS. If you've installed CLN as a dynamic library, you might need to set extra environment variable to tell the run-time linker where to look for the library. On ELF systems (such as Linux, Solaris, FreeBSD), this would be either LD_LIBRARY_PATH=/usr/local/lib or LDFLAGS="-Wl,-R -Wl,/usr/local/lib" Unfortunately, I don't know how to do this on Mac OS :( Best regards, Alexei -- All science is either physics or stamp collecting.
Hello Sheplyakov Alexei, I succeed in configuring ginac1.4 with PKG_CONFIG=/sw/bin/pkg-config PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure in directory of ginac-1-4.0. I got some errors at the end of make procedure: . . . Making all in check make[2]: Nothing to be done for `all'. Making all in ginsh sed -n -f ./ginsh_fcn_help.sed <ginsh.1 >ginsh_fcn_help.h sed -n -f ./ginsh_op_help.sed <ginsh.1 >ginsh_op_help.h if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac - DIN_GINAC -I/usr/l ocal/include -g -O2 -MT ginsh_parser.o -MD -MP -MF ".deps/ ginsh_parser.Tpo" - c -o ginsh_parser.o ginsh_parser.cc; \ then mv -f ".deps/ginsh_parser.Tpo" ".deps/ginsh_parser.Po"; else rm - f ".deps/g insh_parser.Tpo"; exit 1; fi ../../GiNaC/ginsh/ginsh_parser.yy:51:6: error: missing binary operator before to ken "wrapper" ../../GiNaC/ginsh/ginsh_parser.yy:57:6: error: missing binary operator before to ken "wrapper" ../../GiNaC/ginsh/ginsh_parser.yy:863:6: error: missing binary operator before t oken "wrapper" ../../GiNaC/ginsh/ginsh_parser.yy:873:6: error: missing binary operator before t oken "wrapper" ../../GiNaC/ginsh/ginsh_parser.yy:927:6: error: missing binary operator before t oken "wrapper" ../../GiNaC/ginsh/ginsh_parser.yy: In function 'char** fcn_completion (const char *, int, int)': ../../GiNaC/ginsh/ginsh_parser.yy:861: error: invalid conversion from 'const cha r*' to 'char*' ../../GiNaC/ginsh/ginsh_parser.yy:866: error: 'rl_filename_completion_function' was not declared in this scope ../../GiNaC/ginsh/ginsh_parser.yy:866: error: 'rl_completion_matches' was not de clared in this scope ../../GiNaC/ginsh/ginsh_parser.yy:876: error: 'rl_completion_matches' was not de clared in this scope make[2]: *** [ginsh_parser.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 I don't know if need the error free compling of ginsh_parser.cc. I have installed ginac. And now I have another problems octave> pkg install symbolic-1.0.2.tar.gz make: *** [all] Error 1 error: 'make' returned the following error: Ginac library or headers not found false error: called from `pkg:configure_make' in file /sw/share/octave/ 2.9.13/m/pkg/pkg.m near line 1002, column 2 because pgk does not find naturally ginac's include and lib directory. Every-time the same pkg difficulties in all contexts. Regards, Hans-Jürgen Greif Am 10.09.2007 um 10:16 schrieb Sheplyakov Alexei:
Hi!
On Sun, Sep 09, 2007 at 01:00:47PM +0200, Hans-Jürgen Greif wrote:
here you have some config.log without/with settings of
CPPFLAGS="-I/usr/local/include"
LDFLAGS="-L/usr/local/lib"
Thanks.
This time I work on another G4 macosx 10.4.10 system. You are right on this system I haven't got error messages from ginac configure. But every-time time the same output:
checking for CLN... configure: error: Package requirements (cln >= 1.1.6) were not met.
It also gives an adivice:
"Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix."
The manual page of pkg-config says "pkg-config retrieves information about packages from special metadata files. These files are named after the package, with the extension .pc. By default, pkg-config looks in the directory prefix/lib/pkgconfig for these files; it will also look in the colon-separated list of directories specified by the PKG_CONFIG_PATH environment variable."
So, probably you need to do this:
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --foo --bar
I'm not sure if this will help, I'd expect /usr/local/lib/pkgconfig directory to be in the "standard" search path of pkg-config. But may be it is not on Mac OS.
If you've installed CLN as a dynamic library, you might need to set extra environment variable to tell the run-time linker where to look for the library. On ELF systems (such as Linux, Solaris, FreeBSD), this would be either
LD_LIBRARY_PATH=/usr/local/lib
or
LDFLAGS="-Wl,-R -Wl,/usr/local/lib"
Unfortunately, I don't know how to do this on Mac OS :(
Best regards, Alexei
-- All science is either physics or stamp collecting.
_______________________________________________ GiNaC-list mailing list GiNaC-list@ginac.de https://www.cebix.net/mailman/listinfo/ginac-list
Hi! On Mon, Sep 10, 2007 at 11:30:55PM +0200, Hans-Jürgen Greif wrote:
I got some errors at the end of make procedure:
[Unbroke lines to make error messages readable]
Making all in check make[2]: Nothing to be done for `all'. Making all in ginsh sed -n -f ./ginsh_fcn_help.sed <ginsh.1 >ginsh_fcn_help.h sed -n -f ./ginsh_op_help.sed <ginsh.1 >ginsh_op_help.h if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac -DIN_GINAC -I/usr/local/include -g -O2 -MT ginsh_parser.o -MD -MP -MF ".deps/ ginsh_parser.Tpo" -c -o ginsh_parser.o ginsh_parser.cc; \ then mv -f ".deps/ginsh_parser.Tpo" ".deps/ginsh_parser.Po"; else rm -f ".deps/ginsh_parser.Tpo"; exit 1; fi ../../GiNaC/ginsh/ginsh_parser.yy:51:6: error: missing binary operator before token "wrapper" ../../GiNaC/ginsh/ginsh_parser.yy:57:6: error: missing binary operator before token "wrapper" ../../GiNaC/ginsh/ginsh_parser.yy:863:6: error: missing binary operator before token "wrapper" ../../GiNaC/ginsh/ginsh_parser.yy:873:6: error: missing binary operator before token "wrapper" ../../GiNaC/ginsh/ginsh_parser.yy:927:6: error: missing binary operator before token "wrapper" ../../GiNaC/ginsh/ginsh_parser.yy: In function 'char** fcn_completion(const char *, int, int)': ../../GiNaC/ginsh/ginsh_parser.yy:861: error: invalid conversion from 'const char*' to 'char*' ../../GiNaC/ginsh/ginsh_parser.yy:866: error: 'rl_filename_completion_function' was not declared in this scope ../../GiNaC/ginsh/ginsh_parser.yy:866: error: 'rl_completion_matches' was not declared in this scope ../../GiNaC/ginsh/ginsh_parser.yy:876: error: 'rl_completion_matches' was not declared in this scope
Really, really reject non-GNU libreadline. --- acinclude.m4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 11c8039..dd7299c 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -26,7 +26,7 @@ int main() return 0; }], [ dnl Some non-GNU readline implementations have non-numeric rl_library_version -ginac_cv_rlversion=`sed -e 's/[^0-9.]//g' 'conftest.out'`], [ ginac_cv_rlversion='unknown'], [ ginac_cv_rlversion='4.2'])]) +ginac_cv_rlversion=`sed -e 's/[[^0-9.]]//g' 'conftest.out'`], [ ginac_cv_rlversion='unknown'], [ ginac_cv_rlversion='4.2'])]) if test -z "$ginac_cv_rlversion"; then GINAC_WARNING([Unsupported version of libreadline.]) ginac_cv_rlversion='unknown' -- 1.4.4.4 Best regards, Alexei -- All science is either physics or stamp collecting.
On Mon, Sep 10, 2007 at 11:30:55PM +0200, Hans-Jürgen Greif wrote:
PKG_CONFIG=/sw/bin/pkg-config PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure
in directory of ginac-1-4.0.
I got some errors at the end of make procedure:
[snipped] I've put new tarball at <http://theor.jinr.ru/~varg/g>. Could you please try it? Best regards, Alexei -- All science is either physics or stamp collecting.
participants (3)
-
Hans-Jürgen Greif
-
Marius Schamschula
-
varg@theor.jinr.ru