Could not figure out how to output real numbers in human-readable format using the vishaps compiler. So I installed obnc. From the CLI, I can run obnc, obnc-compile, etc without a problem, so there doesn't seem to be $PATH issue. However, when I try to compile my code: --> obnc tempConvert.obn sh: 1: /usr/local/bin/obnc-compile: not found obnc: build process failed It may be that I'm jinxed when it comes to using Oberon - in any flavour. :( -- Duke Normandin <dukeofpurl@gmx.com>
You can give oberonc a try instead. You just need a Java virtual machine in your system. It is well tested. https://github.com/lboasso/oberonc On Sat, Apr 10, 2021, 09:24 Duke Normandin <dukeofpurl@gmx.com> wrote:
Could not figure out how to output real numbers in human-readable format using the vishaps compiler. So I installed obnc.
From the CLI, I can run obnc, obnc-compile, etc without a problem, so there doesn't seem to be $PATH issue.
However, when I try to compile my code:
--> obnc tempConvert.obn sh: 1: /usr/local/bin/obnc-compile: not found obnc: build process failed
It may be that I'm jinxed when it comes to using Oberon - in any flavour. :(
-- Duke Normandin <dukeofpurl@gmx.com> -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
On Sat, 10 Apr 2021 09:29:46 -0500 Luca Boasso <luke.boasso@gmail.com> wrote:
You can give oberonc a try instead. You just need a Java virtual machine in your system. It is well tested.
Thanks for suggesting this interesting alternative! -- Duke Normandin <dukeofpurl@gmx.com>
On 2021-04-10 16:23, Duke Normandin wrote:
From the CLI, I can run obnc, obnc-compile, etc without a problem, so there doesn't seem to be $PATH issue.
However, when I try to compile my code:
--> obnc tempConvert.obn sh: 1: /usr/local/bin/obnc-compile: not found obnc: build process failed
Have you built and installed OBNC according to the instructions in the README file? With the standard installation both obnc and obnc-compile should go in /usr/local/bin. -- August
On Sun, 11 Apr 2021 16:04:48 +0200 August Karlstrom <fusionfile@gmail.com> wrote: [snip]
Have you built and installed OBNC according to the instructions in the README file? With the standard installation both obnc and obnc-compile should go in /usr/local/bin.
I installed obnc in a /bin directory in $HOME and set the $PATH accordingly. Like I said, I can run obnc AND obnc-compile from the CLI. However, obnc does not seem to be able to find obnc-compile even if $PATH is set. -- Duke Normandin <dukeofpurl@gmx.com>
Duke, On So, 2021-04-11 at 08:33 -0600, Duke Normandin wrote:
On Sun, 11 Apr 2021 16:04:48 +0200 August Karlstrom <fusionfile@gmail.com> wrote: Have you built and installed OBNC according to the instructions in
the README file? With the standard installation both obnc and obnc-compile should go in /usr/local/bin. I installed obnc in a /bin directory in $HOME and set the $PATH accordingly.
Like I said, I can run obnc AND obnc-compile from the CLI. However, obnc does not seem to be able to find obnc-compile even if $PATH is set.
Yes, this could be deduced from your original post: --> obnc tempConvert.obn sh: 1: /usr/local/bin/obnc-compile: not found obnc: build process failed My guess: obnc uses the library function "system" (or something equivalent) to execute the command "obnc-compile" by the shell. The shell uses the path /usr/local/bin without respecting the $PATH environment variable. My recommendation: do exactly as August suggested and put obnc and obnc-compile in /usr/local/bin. The alternative (finding and correcting the place where the path is hard-coded) is more difficult. Hellwig
On Sun, 11 Apr 2021 16:54:30 +0200 Hellwig Geisse <hellwig.geisse@mni.thm.de> wrote: [snip]
My recommendation: do exactly as August suggested and put obnc and obnc-compile in /usr/local/bin. The alternative (finding and correcting the place where the path is hard-coded) is more difficult.
Roger! Wilco .... Thx! -- Duke Normandin <dukeofpurl@gmx.com>
On 2021-04-11 16:33, Duke Normandin wrote:
I installed obnc in a /bin directory in $HOME and set the $PATH accordingly.
If you want to use an installation directory different than /usr/local you need to use the option `prefix' as described in README, e.g. ./build --prefix="$HOME/.local" ./install -- August
On Sun, 11 Apr 2021 17:51:01 +0200 August Karlstrom <fusionfile@gmail.com> wrote:
On 2021-04-11 16:33, Duke Normandin wrote:
I installed obnc in a /bin directory in $HOME and set the $PATH accordingly.
If you want to use an installation directory different than /usr/local you need to use the option `prefix' as described in README, e.g.
./build --prefix="$HOME/.local" ./install
Obviously, I must have missed that --prefix alternative! Thanks for pointing that out! I should quit while I'm ahead!! I don't have too many toes left on my right foot playing with Oberon compilers. :) Thanks again! -- Duke Normandin <dukeofpurl@gmx.com>
On Sun, 11 Apr 2021 17:51:01 +0200 August Karlstrom <fusionfile@gmail.com> wrote:
On 2021-04-11 16:33, Duke Normandin wrote:
I installed obnc in a /bin directory in $HOME and set the $PATH accordingly.
If you want to use an installation directory different than /usr/local you need to use the option `prefix' as described in README, e.g.
./build --prefix="$HOME/.local" ./install
I just now re-installed obnc using the --prefix=" ..." *after* doing `./install u' ~/programming/oberon/code/oakwood/obnc-code -> which obnc /home/dnormandin/bin/usr/local/bin/obnc ~/programming/oberon/code/oakwood/obnc-code -> which obnc-compile /home/dnormandin/bin/usr/local/bin/obnc-compile ~/programming/oberon/code/oakwood/obnc-code -> obnc hello.obn sh: 1: /usr/local/bin/obnc-compile: not found obnc: build process failed -- Duke Normandin <dukeofpurl@gmx.com>
On 2021-04-12 17:27, Duke Normandin wrote:
I just now re-installed obnc using the --prefix=" ..." *after* doing `./install u'
Since you set the path prefix to /home/dnormandin/bin (instead of /home/dnormandin) the OBNC commands ended up in /home/dnormandin/bin/bin after the install command. -- August
On 2021-04-10 16:23, Duke Normandin wrote:
Could not figure out how to output real numbers in human-readable format using the vishaps compiler. So I installed obnc.
With OBNC you can also interface to C functions like printf. Here is an example: https://rsdoiel.github.io/blog/2020/05/01/Combining-Oberon-and-C.html -- August
On Sun, 11 Apr 2021 22:06:05 +0200 August Karlstrom <fusionfile@gmail.com> wrote:
On 2021-04-10 16:23, Duke Normandin wrote:
Could not figure out how to output real numbers in human-readable format using the vishaps compiler. So I installed obnc.
With OBNC you can also interface to C functions like printf. Here is an example:
https://rsdoiel.github.io/blog/2020/05/01/Combining-Oberon-and-C.html
Interesting read! Opens up a wide range of possibilities! Thx ... -- Duke Normandin <dukeofpurl@gmx.com>
participants (4)
-
August Karlstrom -
Duke Normandin -
Hellwig Geisse -
Luca Boasso