GithubHelp home page GithubHelp logo

Makefile: sla_test about presto HOT 3 CLOSED

scottransom avatar scottransom commented on June 29, 2024
Makefile: sla_test

from presto.

Comments (3)

chrisjwilliams avatar chrisjwilliams commented on June 29, 2024

I'm seeing this too (on ubuntu 9.10 and 10.10).
The library is created, but it's seems like it is not sync'ed to disk before the attempt to link the test code. Running make again does work, but this isn't a very good solution when you want to automate this process!

from presto.

cs150bf avatar cs150bf commented on June 29, 2024

People without sudo/root might use a quick fix by just adding the lib path to the environment variable. Like adding an export line before slalib/sla_test, like

slalib: libsla$(LIBSUFFIX)
     cd slalib ; $(FC) -o sla_test sla_test.f -fno-second-underscore -L$(PRESTO)/lib -lsla
     export LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):$(PRESTO)/lib &&  \
     slalib/sla_test

https://github.com/scottransom/presto/blob/master/src/Makefile#L130

from presto.

bretonr avatar bretonr commented on June 29, 2024

I concur with @cs150bf: one needs to add $PRESTO/lib to the LD_LIBRARY_PATH. You can do it by editing the Presto Makefile like @cs150bf suggested or -- this is what I do -- you can add it to your .bashrc:

export LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):$(PRESTO)/lib

Note: if you want to run the Presto build using sudo, your user's environment variables won't follow when you do sudo make. Instead, you can try sudo -E make, which will attempt to preserve them. It might not work under your system though, depending how sudo is configured.

from presto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.