Opened 9 years ago

Closed 9 years ago

#49938 closed defect (fixed)

demeter: missing perl dependencies

Reported by: laila_awn@… Owned by: joefowler (Joe Fowler)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mojca (Mojca Miklavec), dbevans (David B. Evans)
Port: demeter

Description

Hello there,

I have installed Demeter on my laptop. My operating system is OS X El-Capitan version 10.11.1. The installed Xcode version is 7.2. After installing Demeter, I faced two issues:

  • The first is that I tried to launch Athena and I got a message saying that I need to install the Encoding:: FixLatin::XS module.
  • The second is that when I tried to launch Artemis, I got the following
Artemis
Can't locate Heap/Fibonacci.pm in @INC (you may need to install the Heap::Fibonacci module) (@INC contains: /opt/local/lib/perl5/site_perl/5.22/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.22 /opt/local/lib/perl5/vendor_perl/5.22/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.22 /opt/local/lib/perl5/5.22/darwin-thread-multi-2level /opt/local/lib/perl5/5.22 .) at /opt/local/lib/perl5/site_perl/5.22/darwin-thread-multi-2level/Demeter/Feff.pm line 45.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/site_perl/5.22/darwin-thread-multi-2level/Demeter/Feff.pm line 45.
Compilation failed in require at /opt/local/lib/perl5/site_perl/5.22/darwin-thread-multi-2level/Demeter.pm line 327.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/site_perl/5.22/darwin-thread-multi-2level/Demeter/UI/Artemis.pm line 26.
Compilation failed in require at /opt/local/bin/Artemis line 42.
BEGIN failed--compilation aborted at /opt/local/bin/Artemis line 42.

I was wondering if anyone can help me with that

Change History (16)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to joe.fowler@…
Port: demeter added
Summary: Perl: missing dependenciesdemeter: missing perl dependencies

comment:2 Changed 9 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

comment:3 Changed 9 years ago by mojca (Mojca Miklavec)

Version: 2.3.4

Can you try to install p5.22-graph and see if that helps?

If it does, then demeter probably needs an additional runtime dependency.

comment:4 Changed 9 years ago by joefowler (Joe Fowler)

Many thanks to mojca for this suggestion. However, the latest demeter portfile does in fact require p${perl-version}-graph, so this can't be the problem.

The missing file Heap/Fibonacci.pm is part of p${perl-version}-heap. It's true that p5.22-heap is not a direct dependency of demeter, but p5.22-graph is a dependency, and it depends, in turn, on p5.22-heap. We could certainly add p5.22-heap to the demeter dependencies, but I don't see how this helps.

Can the original poster comment on whether he or she finds positive responses to the query

port installed p5.22-graph p5.22-heap

Also, is this question about the latest version (0.9.22_1) of demeter? If so, and if the two above-listed Perl packages are installed, then I have no idea what's going on. (If the problem is in El Capitan, I admit that I do not have access to or familiarity with any OS X newer than Mavericks.)

comment:5 in reply to:  4 Changed 9 years ago by laila_awn@…

Replying to joe.fowler@…:

Many thanks to mojca for this suggestion. However, the latest demeter portfile does in fact require p${perl-version}-graph, so this can't be the problem.

The missing file Heap/Fibonacci.pm is part of p${perl-version}-heap. It's true that p5.22-heap is not a direct dependency of demeter, but p5.22-graph is a dependency, and it depends, in turn, on p5.22-heap. We could certainly add p5.22-heap to the demeter dependencies, but I don't see how this helps.

Can the original poster comment on whether he or she finds positive responses to the query

port installed p5.22-graph p5.22-heap

Also, is this question about the latest version (0.9.22_1) of demeter? If so, and if the two above-listed Perl packages are installed, then I have no idea what's going on. (If the problem is in El Capitan, I admit that I do not have access to or familiarity with any OS X newer than Mavericks.)

Hello there,

I have found the following response to the query in your comment

port installed p5.22-graph p5.22-heap
The following ports are currently installed:
  p5.22-graph @0.970.400_0 (active)

I think I will try and install and older operating system

comment:6 in reply to:  3 Changed 9 years ago by laila_awn@…

Replying to mojca@…:

Can you try to install p5.22-graph and see if that helps?

If it does, then demeter probably needs an additional runtime dependency.

I tried installing 'p5.22-graph' I got the following:

Computing dependencies for p5.22-graph
--->  Cleaning p5.22-graph
--->  Scanning binaries for linking errors
--->  No broken files found.                 

comment:7 Changed 9 years ago by mojca (Mojca Miklavec)

Before you go to an older operating system (which will most likely not solve anything), try

sudo port install p5.22-heap

When I searched for Heap::Fibonacci on CPAN I came to the wrong conclusion that it was part of p5.22-graph rather than p5.22-heap.

comment:8 in reply to:  7 Changed 9 years ago by laila_awn@…

Replying to mojca@…:

Before you go to an older operating system (which will most likely not solve anything), try

sudo port install p5.22-heap

When I searched for Heap::Fibonacci on CPAN I came to the wrong conclusion that it was part of p5.22-graph rather than p5.22-heap.

Many thanks for the help, I really appreciate it. I managed to launch Artemis after trying the

sudo port install p5.22-heap

I still have an issue with Athena. After launching Athena and whenever I try to import data, I will get the following message:

"Can't locate Encoding/FixLatin/XS.pm in @INC (you may need to install the Encoding:: FixLatin::XS module)"

I was wondering if you could help me with installing the Encoding:: FixLatin::XS module

comment:9 Changed 9 years ago by mojca (Mojca Miklavec)

Try with

sudo port install p5.22-encoding-fixlatin-xs

(These dependencies should be added somewhere.)

comment:10 in reply to:  9 Changed 9 years ago by laila_awn@…

Replying to mojca@…:

Try with

sudo port install p5.22-encoding-fixlatin-xs

(These dependencies should be added somewhere.)

Many thanks Mojca for the help. I do not see the error message anymore; however, after importing the data I do not see a plot of the data either. Could you please help me with that

comment:11 Changed 9 years ago by mojca (Mojca Miklavec)

It's difficult for me to help because I don't know which software you are using, how to use that software or how to plot the data. If that is easy to explain, I can check, but I would need all the instructions and data to reproduce the problem. Otherwise the maintainer of this port might know more.

comment:12 in reply to:  11 Changed 9 years ago by laila_awn@…

Replying to mojca@…:

It's difficult for me to help because I don't know which software you are using, how to use that software or how to plot the data. If that is easy to explain, I can check, but I would need all the instructions and data to reproduce the problem. Otherwise the maintainer of this port might know more.

Many thanks for the help.

I found out that a number of the software users are facing this issue. One of the users suggested that the "gnuplot-->terminal" parameter should be set to x11. It is currently set to Aqua

gnuplot

	G N U P L O T
	Version 5.0 patchlevel 1    last modified 2015-06-07 

	Copyright (C) 1986-1993, 1998, 2004, 2007-2015
	Thomas Williams, Colin Kelley and many others

	gnuplot home:     http://www.gnuplot.info
	faq, bugs, etc:   type "help FAQ"
	immediate help:   type "help"  (plot window: hit 'h')

Terminal type set to 'aqua'

I was wondering if you have any idea about this and whether you could help.

Sorry for the inconvenience and many thanks again

comment:13 Changed 9 years ago by mojca (Mojca Miklavec)

In that case please try

sudo port install gnuplot +wxwidgets -aquaterm -x11

(or without -x11). Then you should get wxwidgets terminal by default rather than the AquaTerm. (You can also control the terminal with export GNUTERM=wxt or by putting set term wxt to a file $HOME/.gnuplot. You can of course use x11, but I would suggest you to go with wxt or qt. For qt you need to install gnuplot with port install gnuplot ... +qt or +qt5)

But if there are problems with AquaTerm I would like to know as well. Usually the problems arise because of an incompatible version of AquaTerm installed elsewhere. This is for a different ticket though.

comment:14 in reply to:  13 Changed 9 years ago by laila_awn@…

Replying to mojca@…:

In that case please try

sudo port install gnuplot +wxwidgets -aquaterm -x11

(or without -x11). Then you should get wxwidgets terminal by default rather than the AquaTerm. (You can also control the terminal with export GNUTERM=wxt or by putting set term wxt to a file $HOME/.gnuplot. You can of course use x11, but I would suggest you to go with wxt or qt. For qt you need to install gnuplot with port install gnuplot ... +qt or +qt5)

But if there are problems with AquaTerm I would like to know as well. Usually the problems arise because of an incompatible version of AquaTerm installed elsewhere. This is for a different ticket though.

Many thanks for the help Mojca. I managed to change gnuplot-->terminal setting from the software itself. Thanks again for the help and sorry for any inconvenience caused

comment:15 Changed 9 years ago by mojca (Mojca Miklavec)

Cc: devans@… added

comment:16 Changed 9 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Running

sudo port -d configure demeter

yields

Checking prerequisites...
  requires:
    !  Heap is not installed
    !  XMLRPC::Lite is not installed
  build_requires:
    !  File::Slurp::Tiny is not installed
  recommends:
    *  Encoding::FixLatin::XS is not installed

Missing dependencies added in r144666.

Note: See TracTickets for help on using tickets.