Using Gnumeric-Pure on the Windows Linux Subsystem

122 views
Skip to first unread message

Richard de Rozario

unread,
Nov 11, 2017, 2:53:14 AM11/11/17
to pure-lang
Hi,

I've always wanted to use Gnumeric (with Pure of course) on Windows.  Now that Microsoft has released the Windows Linux Subsystem on Windows 10, that is possible.  Here are the steps I used  (note: some of this is from memory, so feel free to correct typos):

Firstly, you will want some sort of XWindows client for Windows.  I used XMing.  You should also get the XMing fonts package installer from the XMing website, because the standard fonts in XMing are low res. Just install with all the defaults.  Then start XLaunch (again with all the default choices).  XLaunch won't do anything yet, until we install the Linux subsystem.

From the Windows button:

* got to Settings... Updates & Security and select Update History.  Check that you have at least update version 1703, so that the linux subsystem installs Ubuntu 16 Xenial.  Earlier version of Windows will install Ubuntu 14 Trusty.
* go to Settings... Updates & Security... For Developers  and select Developer mode  (this enables downloading of the Linux Subsystem from the Windows Store)
* go to "turn windows features on or off" and tick "Windows subsystem for Linux"
* lastly, from the Windows button, or in the Windows command shell, type "bash.exe"

The first time in the bash shell, Windows will ask to install Linux.  That takes a little while, just wait for it.  It will also ask to set up user name and password.

Then, in Linux, first you should upgrade to latest versions and install gnumeric:

    sudo apt update
    sudo apt upgrade
    sudo apt
-get install gnumeric

Next, add the line

    export DISPLAY=:0

to your ~/.bashrc file and 

    source ~/.bashrc

Now see that gnumeric works:

    gnumeric

If gnumeric works, then close it down.  Next, you'll want to install the gcc build environment and some libraries that Pure needs to compile the gnumeric-pure addon, as well as Pure itself of course:

    sudo apt-get install wget build-essential libgsl-dev libgmp-dev libmpfr-dev lib-mpc-dev glib-2.0 libglib-2.0-dev libgsf-1-dev libgtk-3-dev libgoffice-0.10-dev pure-common

Lastly, let's get the gnumeric-pure addon files and compile/install:

    mkdir Downloads
    cd
Downloads
    wget https
://bitbucket.org/purelang/pure-lang/downloads/gnumeric-pure-0.16.tar.gz
    tar xvf gnumeric
-pure-0.16.tar.gz
    cd gnumeric
-pure-0.16
    sudo make
    sudo make install
  
If everything worked, you can launch gnumeric again and go to Tools... Plug-ins... and tick the Pure functions  box.  Then use Pure functions as per the documentation.

Albert Graef

unread,
Nov 11, 2017, 6:19:02 AM11/11/17
to pure...@googlegroups.com
Richard, that's really very useful, thanks for sharing this!

Note to self: Should be added to the Wiki somewhere.

--
You received this message because you are subscribed to the Google Groups "pure-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pure-lang+unsubscribe@googlegroups.com.
To post to this group, send email to pure...@googlegroups.com.
Visit this group at https://groups.google.com/group/pure-lang.
For more options, visit https://groups.google.com/d/optout.



--
Dr. Albert Gr"af
Computer Music Research Group, JGU Mainz, Germany
Email:  agg...@gmail.com
WWW:    https://plus.google.com/+AlbertGraef
Reply all
Reply to author
Forward
0 new messages