Current Anuga Installation Issues (by way of Ted Rigby) [SEC=UNCLASSIFIED]

27 views
Skip to first unread message

Ole.N...@ga.gov.au

unread,
Feb 28, 2015, 12:50:07 AM2/28/15
to anuga-...@googlegroups.com, ted....@rienco.com.au

Hi ANUGA user group

 

Ted Rigby sent the below to me. It has to do with installing ANUGA on Windows and particularly the tricky point of getting NetCDF support to work.

Do any of you have recent information about this that we could point Ted to?

 

Many thanks

Ole

 

 

Ole Nielsen, PhD
Director | Software Development

ICT Innovation and Services  |  GEOSCIENCE AUSTRALIA

____________________________________________________________

Phone:  +61 2 6249 9550    Fax:  +61 2 6249 9984

Email:  Ole.N...@ga.gov.au    Web:  www.ga.gov.au

 

Cnr Jerrabomberra Avenue and Hindmarsh Drive Symonston ACT

GPO Box 378 Canberra ACT 2601 Australia

 

Applying geoscience to Australia’s most important challenges

 

 

 

From: Ted Rigby [mailto:ted....@rienco.com.au]
Sent: Sunday, 22 February 2015 5:25 PM
To: Nielsen Ole
Subject: Current Anuga Installation Issues

 

Hi Ole

 

Been a while since we last communicated. I am now semi- retired and living in Tasmania (my original home state).

I understand you are now well and truly back in harness at GA but not so involved these days in Anuga so please forward this on to whoever is appropriate if you are no longer that  person!

(It is in my view a significant loss for Anuga if that is not you – your enthusiasm was infectious!)

 

My Issues:

I recently decided to install the current development version following the current installation guide on the ANU trac website.

This I have done many times in the past without issues but found several problems with this latest install.

Scientific Python still does not include the netcdf package requiring a separate installation (as noted in the installation notes).

The Scientific Python URL provided no longer  supplies the packages in windows friendly form (wheels files requiring PIP). I had to download a windows friendly version from the authors site.

The packages described in the installation notes do not cover the installation of mingw. This is also needed if not already installed (as on my new machine).

Finally all seemed ready to run  but running the compile_all script failed in a loader command when it could not find –lpthread.

I attach a screen dump of the failing code. Can you point me to a fix?

 

I would also make the general point that most windows machines are now 64 bit capable but much of the libraries and code seems to be 32 bit.

There is for instance a very capable mingw 32/64 compiler but I have not tried it with Anuga.

Some specific installation guidelines for 64 bit windows machines would no doubt benefit many users as would installation/script guidelines for running parallel code under windows (8 cores are now pretty standard on any i7 machine.

 

Thanks in advance for whatever assistance you can offer.

 

Yours sincerely

Ted Rigby

 

 

Geoscience Australia Disclaimer: This e-mail (and files transmitted with it) is intended only for the person or entity to which it is addressed. If you are not the intended recipient, then you have received this e-mail by mistake and any use, dissemination, forwarding, printing or copying of this e-mail and its file attachments is prohibited. The security of emails transmitted cannot be guaranteed; by forwarding or replying to this email, you acknowledge and accept these risks.
-------------------------------------------------------------------------------------------------------------------------

anuga ld error.jpg

rudy

unread,
Feb 28, 2015, 1:06:37 AM2/28/15
to anuga-...@googlegroups.com, ted....@rienco.com.au
Hi all,

I have not installed on windows for years.  I am only using anuga on ubuntu machines......

Might try....on a windows laptop????

Regards Rudy


Sent from Samsung Mobile
--
You received this message because you are subscribed to the Google Groups "ANUGA support and discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anuga-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephen Roberts

unread,
Feb 28, 2015, 6:04:20 AM2/28/15
to ted....@rienco.com.au, anuga-...@googlegroups.com
Dear Ted,

Funny that you should ask just now.

We are just in the process moving the anuga source over to github, and it will become part of the GA enterprise repository.

But that hasn't been done just yet but I have moved the current version of anuga to my personal github account.

So you can find the version at https://github.com/stoiver/anuga_core. There is a README and an INSTALL file. You can down load using git clone or svn checkout or as a zip file. (Those README's and INSTALL instructions will soon be copied over to the trac site. )

There you will find some discussion of installing on windows. Indeed there is a current problem with mingw32 and pthreads. I suggest using the TDM-GCC version of mingw and the miniconda installation of python and the various python package dependencies.

In theory the 64 bit versions should work using the 64 bit versions of miniconda and the 64 bit version of TDM-GCC but I haven't tried it yet. The 32 bit versions do work.

Let me know if you need some more help with the windows install.

Cheers
Steve
--
You received this message because you are subscribed to the Google Groups "ANUGA support and discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anuga-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
+--------------------------------------------------------------------+
| Steve Roberts                  | My Office:      (61)(2) 6125 4445 |
| Department of Mathematics      | Math Office:    (61)(2) 6125 2908 |
| Mathematical Sciences Institute| Fax:            (61)(2) 6125 4984 |
| John Dedman Building #27       | mailto:stephen...@anu.edu.au |
| Australian National University | http://www.maths.anu.edu.au/~steve|
| Canberra ACT 0200  AUSTRALIA   | ANU CRICOS # 00120C               |
+--------------------------------------------------------------------+

Ted Rigby

unread,
Feb 28, 2015, 11:45:27 PM2/28/15
to anuga-...@googlegroups.com

Hi Steve

 

Many thanks – look forward to following your suggestions.

I normally install/run under Ubuntu without problems but have been asked to assist a group wanting to use windows – hence my current interest in the windows install.

I am not sure if I let you know in 2012 -  but the 2012 version ran all my test scripts fine (no sign of the earlier velocity profile problems).

I have not tried my test scripts out recently but will do so on the current install and reaffirm my earlier findings with you a bit more deliberately.

 

Yours

Ted

Ted Rigby

unread,
Mar 1, 2015, 6:42:59 AM3/1/15
to anuga-...@googlegroups.com

Stephen

 

Thanks for the guidance.  I confirm I am running a fully patched W7_64b on an i7.

 

While the installation following the install guide mostly worked fine – the’ pip install anuga’ failed with what looks like a problem finding the newly installed compiler.

I attach a screen shot of the failure. Any ideas?

I do note that the guide contains a command line ‘source activate anuga_env’ which should be just ‘activate anuga_env’.

 

Out of curiosity I removed all and reinstalled a 64bit miniconda and a 64bit tdmMingw which also seemed fine but failed with the same error.

 

Yours

Ted

 

From: anuga-...@googlegroups.com [mailto:anuga-...@googlegroups.com] On Behalf Of Stephen Roberts
Sent: Saturday, 28 February 2015 10:04 PM
To: Ted Rigby
Cc: anuga-...@googlegroups.com
Subject: Re: Current Anuga Installation Issues (by way of Ted Rigby) [SEC=UNCLASSIFIED]

 

Dear Ted,

install error anuga32.png

Stephen Roberts

unread,
Mar 1, 2015, 4:28:03 PM3/1/15
to anuga-...@googlegroups.com


Hi Ted,

Yes  source activate anuga_env on linux/osx  and just activate anuga_env on windows.

I also had a go with installing win64, but have run into lots of errors (probably due to the dreaded difference between int and long in win32 and win64). It will take some effort to track down the errors.

So I suggest go with the win32 setup for the time being.

By the way it should be possible to get openmpi working with pypar on win32. If so then anuga should then work in parallel

Now the pip install anuga command. It work fine on linux/osx, but on windows it is having trouble picking up that we should use the mingw32 compiler. pip doesn't seem to have a simple way to specify the compiler. So on windows let's just use the setup.py script.

I assume you have already downloaded the anuga source either from subversion,
https://anuga.anu.edu.au/svn/anuga/trunk/anuga_core or git  https://github.com/stoiver/anuga_core.git

Then from the anuga_core directory run a standard setup.py type command, but tell it to use the mingw32 compiler with a command like

python setup.py build --compiler=mingw32 install

You can add a file called pydistutils.cfg to your home directory /Users/**** with the content

[build]
compiler=mingw32

and then setup.py will automatically use the mingw32 compiler.

Hopefully that will install into site-packages of your miniconda environment.

Now test via

python runtests.py

Good Luck

Steve
Reply all
Reply to author
Forward
0 new messages