[fluka-discuss]: RE: Problems in fluka scripts with Ubuntu 12.04

From: Vittorio Boccone <Vittorio.Boccone_at_cern.ch>
Date: Fri, 14 Mar 2014 15:01:43 +0000

Hi everybody,
 today I stepped by chance in this minor cold case, but I think the solution still belongs here.

The scripts for Fluka install use the awk command line tools.

The problem lays on version the "awk" command line tools; Ubuntu by default installs one which comes directly from the far far '96.

All the modern Linux distributions place the "gawk" instead of the original one, which of course evolved in time.
The old one misses an option in the string parsing which is used by the installer.

A sudo apt-get install gawk will fix the problem on all Ubuntu.
Best,
V


________________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of Nunzio Tino Burgio [nunzio.burgio_at_enea.it]
Sent: 11 April 2013 10:16
To: fluka-discuss_at_fluka.org
Subject: Re: Problems in fluka scripts with Ubuntu 12.04

Hi all
I have successfully installed the last version of FLUKA (32 bit) on
LUBUNTU 64 bit( a frugal version of UBUNTU 12.10 ) using the g77.
UBUNTU 12.XX versions move from bash to dash shell causing some problem
to various installation scripts. In order to maintain the full
compatibility with the past version of UBUNTU and with other
distributions I made the following change (As root user):

mv /bin/sh /bin/sh.orig
ln -s /bin/bash /bin/sh

Hope it helps in your case.
Ciao

On Thu, 2013-04-11 at 09:16 +0200, Giuseppe Battistoni wrote:
> Dear FLUKA colleagues
> trying to use FLUKA on a very recent Ubuntu version (12.04) we found a problem
> using compilation scripts for user routines (Fluka version is gfortran 64 bit, but this seems not relevant,
> installed from scratch, FLUFOR is set to gfortran)
>
> For example:
> $FLUPRO/flutil/fff usrini.f
> awk: line 0: regular expression compile failed (missing '(') )
> /home/aafke/FLUKA_ubuntu/flutil/fff: 92: [: -le: unexpected operator
> /home/aafke/FLUKA_ubuntu/flutil/fff: 109: /home/aafke/FLUKA_ubuntu/flutil/fff: [[: not found
>
> We reconstructed that this occurs within ffluka.sh (called by fff) and
> apparently it seems like if awk behaves (unexpectedly) in way which is different
> from ordinary.
>
> The same scripts of course run without problem if we install the same
> FLUKA version on other Linux distributions (Fedora, Scientific Linux, CentOS, etc.)
>
> Any idea?
>
> Giuseppe Battistoni and Aafke Kraan
>
>

--
Dr. Nunzio Burgio
ENEA - Italian National Agency for New Technologies, Energy and
Sustainable Economic Development
UTFISSM-PRONOC
ENEA C.R. CASACCIA
S.P. Anguillarese 310
Roma 00060
Italia
Tel +396-3048-3410
E-Mail:nunzio.burgio_at_enea.it
WEB-Site:www.casaccia.enea.it
-----
It is not important to be better than someone else, but to be better
than yesterday
J. Kano
==================================================
  MESSAGGIO ISTITUZIONALE
==================================================
INSIEME PER UNA GRANDE IMPRESA
Destina il 5 per mille all'ENEA per ricostruire Citt� della Scienza
Utilizzeremo il tuo contributo e le nostre competenze tecnico scientifiche per progetti di divulgazione scientifica con Citt� della
Scienza.
Il nostro codice fiscale � 01320740580
Per maggiori informazioni: www.enea.it
Received on Fri Mar 14 2014 - 16:53:32 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 14 2014 - 16:53:33 CET