Installation of Hypre on OS X...
By bryanklein at Tue, Sep 16 2008 10:28am |
Has anyone successfully built and used Hypre on OS X 10.5.x ?
http://acts.nersc.gov/hypre/
-Bryan
Has anyone successfully built and used Hypre on OS X 10.5.x ?
http://acts.nersc.gov/hypre/
-Bryan
Re: Hypre
Hi Bryan,
I just tried to build it on my system and it seemed to build OK (10.5.4). Is there are a specific problem you are having or error that comes up?
I haven't tested that it actually works mind you.
Dave
Error when trying to build examples...
It seems to build fine on my machine too, the problem pops up when trying to build the examples. In the src directory, there is an examples directory. In there, I type make, as per the documentation and get the following output.
myhostname:examples username$ ls
Makefile ex2.c ex5b77.f ex5f.f ex8.c
README.html ex3.c ex5b90.f90 ex6.c ex9.c
README_files ex4.c ex5bj.java ex6b.c
ex1.c ex5.c ex5bp.py ex6b77.f
ex10.cxx ex5b.c ex5bxx.cxx ex7.c
myhostname:examples username$ make
mpicc -g -Wall -I../hypre/include -DHAVE_CONFIG_H -DHYPRE_TIMING -c ex1.c
mpicc -o ex1 ex1.o -g -Wall -L../hypre/lib -lHYPRE -lg2c -lm -lstdc++
ld: library not found for -lg2c
collect2: ld returned 1 exit status
make: *** [ex1] Error 1
This is where I get stuck.
Thank you for your time,
-Bryan
Re: Error when trying to build examples...
Hi Brian,
-lg2c is a library for the older f77 compiler. Try editing this line of the makefile:
LIBS = -L$(HYPRE_DIR)/lib -lHYPRE -lg2c -lm
To remove the -lg2c and see if that resolves the issue.
Dave
RE: Hypre Install and Usage.
I cannot find that specified in the makefile or in the config/makefile.config file generated by ./configure
Do you see it on a particular line in the file?
Thank you for your help,
-Bryan