Ok, I downloaded it and extract it. Then I change to the
extracted archive and run:
result = ./configure
Question 1:
I don’t seem to get the output of this command, when it is done
like the above way, in a line-by-line fashion. Of course I get
the whole string, but I have to wait for the output until it is
finished…
Normally via autoconfigure, I get line after line output
immediately.
I would like to have the same functionality from within ruby,
but capture the whole result into the string.
Question 2:
I want to check for errors but I am not sure how to best
do this.
For instance, an error could be like this here:
No package ‘gtk±3.0’ found
I could grep the whole string for something like that.
But perhaps there is another way? An error result that is
set and which I could use in Ruby?
Most people die of a sort of creeping common sense, and discover when it
is too late that the only things one never regrets are one’s mistakes.
- Oscar Wilde
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.