问题
Ubuntu, Linux Mint, Debian
ERROR: 'configure' exists but is not executable -- see the 'R Installation and Administration Manual'
Warning in install.packages : installation of package ‘e1071’ had non-zero exit status
If you run into the error-code above on Linux here is a simple fix for you:
Why does this error occur?
Because the folder R temporarily stores i.e. downloads package files into is 'marked' as non-executable i.e. noexec. This means that compilation, as is required for in this case for the given package is forbidden.
How to fix it?
I unmount the partition/folder, change the status to executable and subsequently mount it again. Here is the terminal code for Ubuntu & Linux Mint:
mount -o remount,exec /tmp
In case you want to revoke executable settings find the code below:
mount -o remount,noexec /tmp
Can this happen on Windows?
Yes it can, and I can confirm the same issue. The solution is somewhat better documented here: Unable to update R packages in default library on Windows 7
- C:\Program Files\R - this folder contains "R", not the RStudio folder!
- Right click for properties.
- Security.
- In "Group our user names" select your name.
- Click "Edit".
- Select "Full Control".
- Click "Apply" and "OK".
来源:https://stackoverflow.com/questions/33310682/error-configure-exists-but-is-not-executable-see-the-r-installation-and-a