Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with installing under FreeBSD... #74

Closed
jszhao opened this issue Jan 9, 2016 · 8 comments
Closed

Trouble with installing under FreeBSD... #74

jszhao opened this issue Jan 9, 2016 · 8 comments

Comments

@jszhao
Copy link

@jszhao jszhao commented Jan 9, 2016

When I tried to install RcppArmadillo, I got the following error message:

* installing *source* package 'RcppArmadillo' ...
** package 'RcppArmadillo' successfully unpacked and MD5 sums checked
./configure: not found
ERROR: configuration failed for package 'RcppArmadillo'
* removing '/usr/local/lib/R/library/RcppArmadillo'

I don't know how to solve this problem.

Any help will be appreciated.

@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Jan 9, 2016

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.

@jszhao
Copy link
Author

@jszhao jszhao commented Jan 10, 2016

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

@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Jan 10, 2016

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.

@jszhao
Copy link
Author

@jszhao jszhao commented Jan 10, 2016

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

@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Jan 10, 2016

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).

@jszhao
Copy link
Author

@jszhao jszhao commented Jan 10, 2016

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.

@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Jan 10, 2016

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.)

@jszhao
Copy link
Author

@jszhao jszhao commented Jan 10, 2016

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

eddelbuettel added a commit that referenced this issue Jan 10, 2016
use /usr/bin/env bash as shebang (closes #74)
eddelbuettel added a commit that referenced this issue Jan 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.