You are not logged in.
I'm trying ot build Mojang's version of LevelDB (https://github.com/Mojang/leveldb-mcpe) as a dependency for something else. The problem is that it contains a file "build_detect_platform" which simply returns "permission denied".
The permissions on the file are:
-rwxr-xr-x 1 paul users 7.3K Oct 7 13:00 build_detect_platformand I am running as user paul - although I've tried it on root with the same problems. I'm utterly baffled as to why I can't run this. I googled the problem and found several references to it, but they all suggest that simply changing the permissions on the file will fix it - but I've done that (both chmod +x and chmod 755) and it makes no difference.
What am I missing? Am I being really stupid?
Offline
What is the exact command you are running? That script will not run without parameters.
And are you trying to run it directly, or are you using the Makefile which calls that script? If the latter, what directory are you in when you try to run make?
And did you actually run a random script as root without bothering to look at what it does? Don't make a habit of that.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I'm mostly running it via the Makefile, although I've tried it on it's own - it would fail because of lack of parameters, as you say, but that should return a different error. I'm running make in the leveldb-mpce directory - i.e. the top level one containing the build_detect_platform script.
I did check it before I ran it as root - but good advice
Offline
What is the exact command you are running?
A vague description of what you mostly do is not what I asked for. And the package directory is not the complete path of where you are trying to run this.
I suspect the error may not be in executing the script itself (this can be confirmed by adding some echo line at the top of the script) - I suspect the error is from within the script as it tries to read and write various files. But my suspicions will get us nowhere if you will not share any information. Another suspicion would be that if this was in a path and/or mountpoint that did not allow execution. But again, this suspicion will go no where if you refuse to answer questions.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Figured it out based on your last reply - it was because I was running it on a network mount. I didn't realise that it didn't allow execution, but I can look into that.
I really wasn't refusing to answer questions! I didn't realise that you were asking for the full path of the directory and we both know that the exact command I was running was "make".
Offline
we both know that the exact command I was running was "make".
I sure didn't.
(reduced in edit).
Last edited by Trilby (2015-10-08 00:34:11)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
There's really no need to be like that. I thought I was answering your questions adequately - obviously I was wrong and for that I apologise. I wasn't trying to be vague or difficult, though I obviously ended up being that and, again, I apologise.
If you don't want to help me again, that's up to you and your right.
Offline
You are right that there was no need for my response. My appologies for the harshness of it which was uncalled for - I've removed that. However, such assumptions are one of my pet peeves. We both certainly did not know what command you were running: you knew, I didn't. That's why I asked.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline