[Users] fatal error: gsl/gsl_sf_ellint.h: No such file or directory
Krishiv Bhatia
flyingunicorns5724 at gmail.com
Wed Oct 6 20:54:46 CDT 2021
Hello Dr. Haas,
Many thanks for your inputs. Glad to tell you it worked! I made changes
in the Sconstruct file exactly as in your email and it ran fine.
Have a good evening!
- Krishiv
On Wed, Oct 6, 2021 at 11:42 AM Roland Haas <rhaas at illinois.edu> wrote:
> Hello Krishiv,
>
> hmm, worksforme.
>
> I just gave this a try on my macOS + macports test machine.
>
> Without any changes I get the error your describe when running:
>
> scons -f SConstruct.gnu
>
> and then I changed CPPPATH to read:
>
> env['CPPPATH'] = ['/usr/local/packages/gsl-2.4-gnu/include',
> 'EffSource/ScalarSchwarzschild/EffectiveSource', '/opt/local/include/']
>
> and LIBPATH to:
>
> env['LIBPATH'] = ['/usr/local/packages/gsl-2.4-gnu/lib',
> '/usr/local/packages/lapack-3.4.2-gnu', '/opt/local/lib/']
>
> I also (had to) change LIBS to
>
> env['LIBS'] = ['stdc++', 'gsl', 'm', 'gslcblas', 'lapack', 'blas']
>
> ie replace refblas with blas.
>
>
> With that compilation and linking worked fine. Did you maybe keep the
> double quotes? Ie set things like so:
>
> env['CPPPATH'] = ['/usr/local/packages/gsl-2.4-gnu/include',
> 'EffSource/ScalarSchwarzschild/EffectiveSource', '"/opt/local/include/"']
>
> I am not familiar with scons though I would suggest removing the Build
> directory (or otherwise making sure that you start from a clean checkout).
>
> Yours,
> Roland
>
> > Sorry kindly ignore the email below. I ran scons from the wrong location.
> >
> > I am still getting the same error and checking.
> >
> >
> >
> > On Wed, Oct 6, 2021 at 11:13 AM Krishiv Bhatia <
> flyingunicorns5724 at gmail.com>
> > wrote:
> >
> > > Hello Dr. Haas,
> > >
> > > Many thanks for your reply. I sincerely appreciate your time.
> > >
> > > The file is there:
> > >
> > > $ ls /opt/local/include/gsl/gsl_sf_ellint.h
> > >
> > > /opt/local/include/gsl/gsl_sf_ellint.h
> > >
> > > Per your advice, I added:
> > > - "/opt/local/include/" to CPPPATH
> > > - "/opt/local/lib/" to LIBPATH
> > >
> > > Now I get:
> > >
> > > $ scons
> > >
> > >
> > > scons: *** No SConstruct file found.
> > >
> > > File "/opt/anaconda3/lib/python3.8/site-packages/SCons/Script/Main.py",
> > > line 944, in _main
> > >
> > >
> > > On Wed, Oct 6, 2021 at 10:14 AM Roland Haas <rhaas at illinois.edu>
> wrote:
> > >
> > >> Hello Krishiv,
> > >>
> > >> you need to check that the include file is present eg for macports
> this
> > >> would be (something like):
> > >>
> > >> /opt/local/include/gsl/gsl_sf_ellint.h
> > >>
> > >> If that is not found the you will have to edit the SConstruct file you
> > >> are using to have the path "/opt/local/include/" in CPPPATH.
> > >>
> > >> You then likely have to add "/opt/local/lib/" to LIBPATH.
> > >>
> > >> Maybe someone on this list has a macOS+macports SConstruct file for
> > >> SelfForce1D that you could use.
> > >>
> > >> Yours,
> > >> Roland
> > >>
> > >> > Hello All,
> > >> >
> > >> > Appreciate if somebody can help out with this error:
> > >> >
> > >> > $ scons
> > >> >
> > >> > scons: Reading SConscript files ...
> > >> >
> > >> > scons: done reading SConscript files.
> > >> >
> > >> > scons: Building targets ...
> > >> >
> > >> > Compiling
> > >> >
> > >>
> Build/EffSource/ScalarSchwarzschild/EffectiveSource/EffectiveSource-acceleration.o
>
> > >> >
> > >> >
> > >>
> Src/EffSource/ScalarSchwarzschild/EffectiveSource/EffectiveSource-acceleration.cc:16:10:
>
> > >> > fatal error: gsl/gsl_sf_ellint.h: No such file or directory
> > >> >
> > >> > 16 | #include <gsl/gsl_sf_ellint.h>
> > >> >
> > >> > | ^~~~~~~~~~~~~~~~~~~~~
> > >> >
> > >> > compilation terminated.
> > >> >
> > >> > scons: ***
> > >> >
> > >>
> [Build/EffSource/ScalarSchwarzschild/EffectiveSource/EffectiveSource-acceleration.o]
>
> > >> > Error 1
> > >> >
> > >> > scons: building terminated because of errors.
> > >> >
> > >> > the gsl library is already installed in my mac. I installed it
> both
> > >> using
> > >> > MacPorts and brew
> > >> >
> > >> > $ ls /usr/local/Cellar/gsl/2.7/lib/
> > >> >
> > >> > libgsl.25.dylib libgsl.a libgsl.dylib libgslcblas.0.dylib
> libgslcblas.a
> > >> > libgslcblas.dylib pkgconfig
> > >> >
> > >> > $ ls /opt/local/lib/*gsl*
> > >> >
> > >> > /opt/local/lib/libgsl.25.dylib /opt/local/lib/libgsl.dylib
> > >> > /opt/local/lib/libgslcblas.a
> > >> >
> > >> > /opt/local/lib/libgsl.a /opt/local/lib/libgslcblas.0.dylib
> > >> > /opt/local/lib/libgslcblas.dylib
> > >>
> > >>
> > >>
> > >> --
> > >> My email is as private as my paper mail. I therefore support
> encrypting
> > >> and signing email messages. Get my PGP key from
> https://urldefense.com/v3/__http://pgp.mit.edu__;!!DZ3fjg!qaz9T0FGF0tP2Kgg84isVT3zcCHFQcJ4tCDim02GsSFjNH0OQe2xhMtENfXnSI8a$
> .
> > >>
> > >
>
>
>
> --
> My email is as private as my paper mail. I therefore support encrypting
> and signing email messages. Get my PGP key from http://pgp.mit.edu .
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/users/attachments/20211006/d87ae291/attachment-0001.html
More information about the Users
mailing list