<div dir="ltr"><div dir="ltr">Hello Dr. Haas,<div><br></div><div>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. </div><div><br></div><div>Have a good evening!</div><div><br></div><div>- Krishiv</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 6, 2021 at 11:42 AM Roland Haas <<a href="mailto:rhaas@illinois.edu">rhaas@illinois.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Krishiv,<br>
<br>
hmm, worksforme.<br>
<br>
I just gave this a try on my macOS + macports test machine.<br>
<br>
Without any changes I get the error your describe when running:<br>
<br>
scons -f SConstruct.gnu<br>
<br>
and then I changed CPPPATH to read:<br>
<br>
env['CPPPATH'] = ['/usr/local/packages/gsl-2.4-gnu/include', 'EffSource/ScalarSchwarzschild/EffectiveSource', '/opt/local/include/']<br>
<br>
and LIBPATH to:<br>
<br>
env['LIBPATH'] = ['/usr/local/packages/gsl-2.4-gnu/lib', '/usr/local/packages/lapack-3.4.2-gnu', '/opt/local/lib/']<br>
<br>
I also (had to) change LIBS to<br>
<br>
env['LIBS'] = ['stdc++', 'gsl', 'm', 'gslcblas', 'lapack', 'blas']<br>
<br>
ie replace refblas with blas.<br>
<br>
<br>
With that compilation and linking worked fine. Did you maybe keep the<br>
double quotes? Ie set things like so:<br>
<br>
env['CPPPATH'] = ['/usr/local/packages/gsl-2.4-gnu/include', 'EffSource/ScalarSchwarzschild/EffectiveSource', '"/opt/local/include/"']<br>
<br>
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).<br>
<br>
Yours,<br>
Roland<br>
<br>
> Sorry kindly ignore the email below. I ran scons from the wrong location.<br>
> <br>
> I am still getting the same error and checking.<br>
> <br>
> <br>
> <br>
> On Wed, Oct 6, 2021 at 11:13 AM Krishiv Bhatia <<a href="mailto:flyingunicorns5724@gmail.com" target="_blank">flyingunicorns5724@gmail.com</a>><br>
> wrote:<br>
> <br>
> > Hello Dr. Haas,<br>
> ><br>
> > Many thanks for your reply. I sincerely appreciate your time.<br>
> ><br>
> > The file is there:<br>
> ><br>
> > $ ls /opt/local/include/gsl/gsl_sf_ellint.h<br>
> ><br>
> > /opt/local/include/gsl/gsl_sf_ellint.h<br>
> ><br>
> > Per your advice, I added:<br>
> > - "/opt/local/include/" to CPPPATH<br>
> > - "/opt/local/lib/" to LIBPATH<br>
> ><br>
> > Now I get:<br>
> ><br>
> > $ scons<br>
> ><br>
> ><br>
> > scons: *** No SConstruct file found.<br>
> ><br>
> > File "/opt/anaconda3/lib/python3.8/site-packages/SCons/Script/Main.py",<br>
> > line 944, in _main<br>
> ><br>
> ><br>
> > On Wed, Oct 6, 2021 at 10:14 AM Roland Haas <<a href="mailto:rhaas@illinois.edu" target="_blank">rhaas@illinois.edu</a>> wrote:<br>
> > <br>
> >> Hello Krishiv,<br>
> >><br>
> >> you need to check that the include file is present eg for macports this<br>
> >> would be (something like):<br>
> >><br>
> >> /opt/local/include/gsl/gsl_sf_ellint.h<br>
> >><br>
> >> If that is not found the you will have to edit the SConstruct file you<br>
> >> are using to have the path "/opt/local/include/" in CPPPATH.<br>
> >><br>
> >> You then likely have to add "/opt/local/lib/" to LIBPATH.<br>
> >><br>
> >> Maybe someone on this list has a macOS+macports SConstruct file for<br>
> >> SelfForce1D that you could use.<br>
> >><br>
> >> Yours,<br>
> >> Roland<br>
> >> <br>
> >> > Hello All,<br>
> >> ><br>
> >> > Appreciate if somebody can help out with this error:<br>
> >> ><br>
> >> > $ scons<br>
> >> ><br>
> >> > scons: Reading SConscript files ...<br>
> >> ><br>
> >> > scons: done reading SConscript files.<br>
> >> ><br>
> >> > scons: Building targets ...<br>
> >> ><br>
> >> > Compiling<br>
> >> > <br>
> >> Build/EffSource/ScalarSchwarzschild/EffectiveSource/EffectiveSource-acceleration.o <br>
> >> ><br>
> >> > <br>
> >> Src/EffSource/ScalarSchwarzschild/EffectiveSource/EffectiveSource-acceleration.cc:16:10: <br>
> >> > fatal error: gsl/gsl_sf_ellint.h: No such file or directory<br>
> >> ><br>
> >> > 16 | #include <gsl/gsl_sf_ellint.h><br>
> >> ><br>
> >> > | ^~~~~~~~~~~~~~~~~~~~~<br>
> >> ><br>
> >> > compilation terminated.<br>
> >> ><br>
> >> > scons: ***<br>
> >> > <br>
> >> [Build/EffSource/ScalarSchwarzschild/EffectiveSource/EffectiveSource-acceleration.o] <br>
> >> > Error 1<br>
> >> ><br>
> >> > scons: building terminated because of errors.<br>
> >> ><br>
> >> > the gsl library is already installed in my mac. I installed it both <br>
> >> using <br>
> >> > MacPorts and brew<br>
> >> ><br>
> >> > $ ls /usr/local/Cellar/gsl/2.7/lib/<br>
> >> ><br>
> >> > libgsl.25.dylib libgsl.a libgsl.dylib libgslcblas.0.dylib libgslcblas.a<br>
> >> > libgslcblas.dylib pkgconfig<br>
> >> ><br>
> >> > $ ls /opt/local/lib/*gsl*<br>
> >> ><br>
> >> > /opt/local/lib/libgsl.25.dylib /opt/local/lib/libgsl.dylib<br>
> >> > /opt/local/lib/libgslcblas.a<br>
> >> ><br>
> >> > /opt/local/lib/libgsl.a /opt/local/lib/libgslcblas.0.dylib<br>
> >> > /opt/local/lib/libgslcblas.dylib <br>
> >><br>
> >><br>
> >><br>
> >> --<br>
> >> My email is as private as my paper mail. I therefore support encrypting<br>
> >> and signing email messages. Get my PGP key from <a href="https://urldefense.com/v3/__http://pgp.mit.edu__;!!DZ3fjg!qaz9T0FGF0tP2Kgg84isVT3zcCHFQcJ4tCDim02GsSFjNH0OQe2xhMtENfXnSI8a$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__http://pgp.mit.edu__;!!DZ3fjg!qaz9T0FGF0tP2Kgg84isVT3zcCHFQcJ4tCDim02GsSFjNH0OQe2xhMtENfXnSI8a$</a> .<br>
> >> <br>
> > <br>
<br>
<br>
<br>
-- <br>
My email is as private as my paper mail. I therefore support encrypting<br>
and signing email messages. Get my PGP key from <a href="http://pgp.mit.edu" rel="noreferrer" target="_blank">http://pgp.mit.edu</a> .<br>
</blockquote></div></div>