Git Product home page Git Product logo

Comments (8)

eddelbuettel avatar eddelbuettel commented on June 1, 2024

The configure script has #!/bin/bash.

Download the tarball, adjust accordingly (ie pick a different shell, or install bash, or whatever) and then install from the updated sources.

I'd recommend having #!/bin/bash. We're hardly the only ones using that.

from rcpparmadillo.

jszhao avatar jszhao commented on June 1, 2024

Thanks. I have downloaded the source code and change the #!/bin/bash in configure to #!/usr/local/bin/bash, and then it works.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 1, 2024

Nice. I had a look at the script, and I do use some bashisms there so it would be a pain to change.

One intermediate step would be #!/usr/bin/env bash (using the env foo trick common with Python). Can you check if that works too? I could make that change, it should work on all systems where bash is native anyway and also on those like yours where it needs to be added.

from rcpparmadillo.

jszhao avatar jszhao commented on June 1, 2024

Thanks a lot for pointing to #!/usr/bin/env bash trick. I have checked that, and it works like a charm.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 1, 2024

I'll make the change, and keep it in mind. Sorry to be enforcing bash on you, but it is a pretty common shell out here (though the *BSDs and other have their own of course).

from rcpparmadillo.

jszhao avatar jszhao commented on June 1, 2024

There is another way, that is to a symbolic link named /bin/bash and
point it to /usr/local/bin/bash

ln -s /usr/local/bin/bash /bin/bash

On FreeBSD, bash could be installed as a package.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 1, 2024

Yes, of course, but you have to do that. I cannot rely on it being present. Had you done that before you would not have noticed this.

(And I'd do it, as much as I hate messing with system directories which your package installer owns.)

from rcpparmadillo.

jszhao avatar jszhao commented on June 1, 2024

Thank you for making the change. Frankly, I also hate to add symbolic to /bin/.

from rcpparmadillo.

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.