Failed compilation - Can't locate ems_utils.pm in @INC

Forum dedicated to older versions of EMS package (WRFEMS v3.2, v3.1 or older). Support is user-to-user based, so please help others if you can.
Orage 33
Posts: 23
Joined: Thu Dec 10, 2009 11:18 am
Location: Bordeaux from France
Contact:

Failed compilation - Can't locate ems_utils.pm in @INC

Post by Orage 33 » Mon May 30, 2011 5:52 pm

Hello,

Sorry for my english, i'm french.

I have successfully installed WRF EMS on Ubuntu 11.04, and i had just 2 bit problems :

Code: Select all

 -> Checking GEMPAK routines -  Missing System Libraries

           libg2c.so.0
           libgfortran.so.1

       !  Not critical, but you will need to install the missing i386 system libraries
          before using NAWIPS/GEMPAK routines.
But it's not important so the first big problem is when i run ems_domain.pl or ems_autopost.pl or ems_autorun.pl each ems_xxxx.pl i get that :

Code: Select all

Can't locate ems_utils.pm in @INC (@INC contains: /strc/ems_util /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./ems_domain.pl line 169.
BEGIN failed--compilation aborted at ./ems_domain.pl line 169.
I don't know why i obtain it.

Thanks to help

Regards
www.meteo-sudouest.fr

meteoadriatic
Posts: 1602
Joined: Wed Aug 19, 2009 10:05 am

Re: Failed compilation

Post by meteoadriatic » Tue May 31, 2011 5:09 am

Hello,

looks to me just like this:
viewtopic.php?f=4&t=181

It might help you also.

surgeon
Posts: 46
Joined: Wed Dec 08, 2010 1:34 pm
Location: Poland
Contact:

Re: Failed compilation

Post by surgeon » Tue May 31, 2011 9:39 am

Orage 23: Try to find the file ems_utils.pm (find / -name "ems_utils.pm" -print). Then add path to file ems_domain.pl somwhere around line 169. ;)

Orage 33
Posts: 23
Joined: Thu Dec 10, 2009 11:18 am
Location: Bordeaux from France
Contact:

Re: Failed compilation

Post by Orage 33 » Thu Jun 02, 2011 9:39 am

Hello,

I have put correctly the path in EMS.cshrc

Code: Select all

setenv EMS /home/administrateur/wrf/usr1/wrfems
And i have find the problem in em_domain.pl :

Code: Select all

use lib("$ENV{EMS}/strc/ems_util");
So I change $ENV{EMS} by my path it works but it doesn't work for all :/

Code: Select all

use lib("/home/administrateur/wrf/usr1/wrfems/strc/ems_util");
Any idea pls ?
www.meteo-sudouest.fr

meteoadriatic
Posts: 1602
Joined: Wed Aug 19, 2009 10:05 am

Re: Failed compilation

Post by meteoadriatic » Thu Jun 02, 2011 12:07 pm

Do you use tcsh? What gives next command:

Code: Select all

echo $SHELL
And what gives next:

Code: Select all

env | grep EMS

Orage 33
Posts: 23
Joined: Thu Dec 10, 2009 11:18 am
Location: Bordeaux from France
Contact:

Re: Failed compilation

Post by Orage 33 » Thu Jun 02, 2011 1:18 pm

So

Code: Select all

-> echo $SHELL
/bin/tcsh
-> env | grep EMS
->
When I do "env | grep EMS" I have nothing :/
www.meteo-sudouest.fr

meteoadriatic
Posts: 1602
Joined: Wed Aug 19, 2009 10:05 am

Re: Failed compilation

Post by meteoadriatic » Thu Jun 02, 2011 2:03 pm

Orage 33 wrote:When I do "env | grep EMS" I have nothing :/
That's a problem.

So what is a username as you log in, that is, what user is wrfems owner? It is "administrateur" isn't it?

OK then, tell me, is there a file:

Code: Select all

/home/administrateur/.cshrc
It is hidden (it has dot in front of it). If it is there, what is it's contents? In fact, from here, you can try to follow this post:
viewtopic.php?p=658#p658
and post here what you can find about that if you still can' resolve on your own after reading that post.

Orage 33
Posts: 23
Joined: Thu Dec 10, 2009 11:18 am
Location: Bordeaux from France
Contact:

Re: Failed compilation

Post by Orage 33 » Thu Jun 02, 2011 2:38 pm

So the user "administrateur" is owner

I have well this file here

Code: Select all

/home/administrateur/.cshrc
And the line is present

Code: Select all

if (-f /usr1/wrfems/EMS.cshrc) source /usr1/wrfems/EMS.cshrc
But when I run "env | grep EMS", I obtain nothing :/

More when i run EMS.cshrc, nothing happens why ?

(Current path in EMS.cshrc : "setenv EMS /home/administrateur/usr1/wrfems")
www.meteo-sudouest.fr

meteoadriatic
Posts: 1602
Joined: Wed Aug 19, 2009 10:05 am

Re: Failed compilation

Post by meteoadriatic » Thu Jun 02, 2011 3:20 pm

Orage 33 wrote:

Code: Select all

if (-f /usr1/wrfems/EMS.cshrc) source /usr1/wrfems/EMS.cshrc
(Current path in EMS.cshrc : "setenv EMS /home/administrateur/usr1/wrfems")
That's not good.

Change

Code: Select all

if (-f /usr1/wrfems/EMS.cshrc) source /usr1/wrfems/EMS.cshrc
to:

Code: Select all

if (-f /home/administrateur/usr1/wrfems/EMS.cshrc) source /home/administrateur/usr1/wrfems/EMS.cshrc
That file exists, isn't it?

Code: Select all

/home/administrateur/usr1/wrfems/EMS.cshrc

Orage 33
Posts: 23
Joined: Thu Dec 10, 2009 11:18 am
Location: Bordeaux from France
Contact:

Re: Failed compilation

Post by Orage 33 » Thu Jun 02, 2011 6:10 pm

It works !!!

Thanks you :)

But i have another problem when i run dwiz :((

Log :

Code: Select all

sh: /home/administrateur/usr1/wrfems/domwiz/libs/jre1.6.0_11/bin/java: No such file or directory
java is present in /home/administrateur/usr1/wrfems/domwiz/libs/jre1.6.0_11/bin/ :S
Last edited by Orage 33 on Thu Jun 02, 2011 6:13 pm, edited 1 time in total.
www.meteo-sudouest.fr

Post Reply