Thanks, Scott,
for the explanation of the echo $

As to the compilation of the new lyx version, setting the exec flag on the sdb solved the issue and I am in the process of compiling it. I am extremely thankful for all who helped me.
Wolfgang



On 16.04.2016 20:11, Scott Kostyshak wrote:
On Sat, Apr 16, 2016 at 10:35:23AM +0200, Wolfgang Engelmann wrote:
Am 15.04.2016 um 21:39 schrieb Scott Kostyshak:
Regardless of the above, what is the exit code after you run ./configure
?
To find that out, run the following immediately after:
echo $?
So you would do
./configure
echo $?
we@wolfgang-Mr-Whisper-Ultra-SSD-II:~/Desktop/lyx-2.2.0rc1$  ./configure
bash: ./configure: Keine Berechtigung
we@wolfgang-Mr-Whisper-Ultra-SSD-II:~/Desktop/lyx-2.2.0rc1$  echo $
$
Not sure I did this properly
I was not clear that the question mark is part of the command. So the
command is:
echo $?

You do not need to do this since we already know what the problem is,
but it is very useful to know so I'll explain it a little. when a
process (think "program" if you want) exits, an exit code is produced.
If that exit code is 0, then the process ran successfully. If it is not
zero, then there was an error. The exact exit code can be used to figure
out what exactly went wrong. For example,

$ doesnotexist
doesnotexist: command not found
$ echo $?
127

In this case the error message was good enough, but just to make sure,
if you run 'man bash', you find that

"If that function is not defined, the shell prints an error message and
returns an exit status of 127."

So the exit code is a way for the program (or shell or kernel) to
indicate why a process did not run correctly.

the exit code that you get after your ./configure command might have
been documented to mean "the mount permissions do not allow executables
to run" or something like that.

In general, whenever you run commands and you want to be more confident
(otherwise how do you know nothing went wrong? You cannot always depend
on error messages) that nothing went wrong, just do

echo $?

and look for a 0.

Scott

Reply via email to