Notes on Linux

Home, Up: Appendix

 

On this page:

Hypatia's Windows Executable Under Linux, Currently No Native Linux Version.

 

Hypatia's Windows Executable Under Linux

Hypatia can be used in a terminal under Wine, if properly configured.

A user told me, "I ran Hypatia RPN under the app Bottles version 51.24 and it runs smoothly, without any glitch or error. I just had to indicate at the beginning, in the options of the Bottle, that the program runs in a terminal. The input editor works without errors and also there is no issue when you change the width of the screen." (Thank you, Mauricio!)

 

If you have tried other ways to run Hypatia on a Linux machine, please let me know about your experiences -- thank you!

 

Currently No Native Linux Version

While in principle the Phix source code should be cross-platform, there are a few obstacles to a native Linux version of Hypatia.

Because the Phix functions video_config() and get_position() currently don't work under Linux, Linux Hypatia's input line editor does not work, which means that you cannot move the cursor in the input line to edit the text, nor can you scroll through past input lines.

Also, under Linux Hypatia does not know the size of its console window and assumes a width of 80 characters.

It may be that these issues can be fixed with later versions of Phix, but currently it doesn't look promising.

 

If you still want to try, you need to install Phix and compile Hypatia, which is quickly done. The current version of Hypatia is written for Phix 1.0.5, it is possible that later versions of Phix may require some adjustments of the code.

Under Linux you need to add two lines to the hy.ini file. Hypatia's editing commands will only work if you specify an editor, and the commands COPY, COPYALL and COPIN only work if you specify a copy-to-clipboard command:

EXTEDITOR editor

CCCOMMAND copy text file to clipboard

 

Under Windows, defaults are notepad.exe and clip <, but under Linux no such defaults exist. These commands will probably work, if you have gedit and xclip installed:

EXTEDITOR gedit

CCCOMMAND xclip -sel c <

 

I have not tested a Linux version of Hypatia -- the input editor is disabled because it wouldn't work, but also some other features may not work as expected.

 

Home, Up: Appendix