GUIDeFATE icon indicating copy to clipboard operation
GUIDeFATE copied to clipboard

CPAN installation failed

Open naltun opened this issue 7 years ago • 20 comments

The exit code was 1 and the last error message was:

make: *** No rule to make target 'script/Executioner.pl', needed by 'blib/script/Executioner.pl'.  Stop.
  SAIFTYNET/GUIDeFATE-0.05.tar.gz
  /usr/bin/make -- NOT OK

naltun avatar Feb 23 '18 13:02 naltun

Should probably get rid of Executioner.pl. Just an application to launch other apps for user to test install has worked. Will remove it.

saiftynet avatar Feb 23 '18 13:02 saiftynet

I have removed the example scripts and uploaded v0.052 (which now therefore much smaller) . Had uploaded version 0.051 which contained a Makefile.PL error, quickly followed by 0.052 which hoepfully fixed it. The example scripts are at the GUIDeFATE master , and can be used to develop other scripts or test the install.

saiftynet avatar Feb 23 '18 18:02 saiftynet

Installation was successful when installing as root but failed with the same errors when installed as my normal user. I may have to re-setup CPAN configs. I'll have to test if the GUIDeFATE works.

naltun avatar Feb 23 '18 18:02 naltun

When running Example/rpsls.pl as both normal and root:

Can't locate GUIDeFATE.pm in @INC (you may need to install the GUIDeFATE module) (@INC contains: /usr/lib/perl5/5.26/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.26/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.26/core_perl /usr/share/perl5/core_perl) at rpsls.pl line 7.
BEGIN failed--compilation aborted at rpsls.pl line 7.

naltun avatar Feb 23 '18 18:02 naltun

Thanks for feedback. Do you have Wx and Wx::Perl::Imagick installed? Does GUIDeFATE work if in a local lib folder?

saiftynet avatar Feb 23 '18 19:02 saiftynet

Looks like this is still version 0.05 on CPAN...please wait a bit longer for the updates to appear on the system. v0.052 is the latest.

saiftynet avatar Feb 23 '18 19:02 saiftynet

Have created a archive of the module and some test scripts to test before installation for version 0.06 (will do this from now onwards). There Have been some API changes. This now supports Tk as well as Wx

saiftynet avatar Feb 25 '18 11:02 saiftynet

---- Unsatisfied dependencies detected during ----
----      SAIFTYNET/GUIDeFATE-0.06.tar.gz     ----
    Wx::Perl::Imagick [requires]
Running install for module 'Wx::Perl::Imagick'
Checksum for /home/naltun/.cpan/sources/authors/id/J/JO/JOUKE/Wx-Perl-Imagick-0.02.tar.gz ok
Configuring J/JO/JOUKE/Wx-Perl-Imagick-0.02.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Could not open 'lib\Wx\Perl\Imagick.pm': No such file or directory at /usr/share/perl5/core_perl/ExtUtils/MM_Unix.pm line 2876.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
  JOUKE/Wx-Perl-Imagick-0.02.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
  SAIFTYNET/GUIDeFATE-0.06.tar.gz
  Has already been unwrapped into directory /home/naltun/.cpan/build/GUIDeFATE-0.06-1
  SAIFTYNET/GUIDeFATE-0.06.tar.gz
  Has already been prepared
Running make for S/SA/SAIFTYNET/GUIDeFATE-0.06.tar.gz
Warning: Prerequisite 'Wx::Perl::Imagick => 0' for 'SAIFTYNET/GUIDeFATE-0.06.tar.gz' failed when processing 'JOUKE/Wx-Perl-Imagick-0.02.tar.gz' with 'writemakefile => NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512'. Continuing, but chances to succeed are limited.
cp lib/GFtk.pm blib/lib/GFtk.pm
cp lib/GFwx.pm blib/lib/GFwx.pm
cp lib/GFwxFrame.pm blib/lib/GFwxFrame.pm
cp GUIDeFATE.pod blib/lib/GUIDeFATE.pod
cp lib/GUIDeFATE.pm blib/lib/GUIDeFATE.pm
make: *** No rule to make target 'script/Executioner.pl', needed by 'blib/script/Executioner.pl'.  Stop.
  SAIFTYNET/GUIDeFATE-0.06.tar.gz
  /usr/bin/make -- NOT OK

This part looks interesting to me:

Could not open 'lib\Wx\Perl\Imagick.pm': No such file or directory at /usr/share/perl5/core_perl/ExtUtils/MM_Unix.pm line 2876..

naltun avatar Feb 26 '18 15:02 naltun

Hi Noah. IMagick:--That is because the makefile specifies the path in Windows format...edit it to use forward slashes (Unix/linux) instead of backward slashes (windows).

Shouldn't have Executioner.pl in the makefile...sorry will check again tonight

saiftynet avatar Feb 27 '18 07:02 saiftynet

Really sorry about the difficulties with installation...The Executioner.pl crept back into my Makefile.PL. This has again been removed.

saiftynet avatar Feb 27 '18 19:02 saiftynet

No problem Saif, I am happy to help troubleshoot issues. I'll try installing the module tomorrow, and I'll report back with the result.

naltun avatar Feb 27 '18 19:02 naltun

Installing from CPAN:

Running make test
No tests defined for GUIDeFATE extension.
  SAIFTYNET/GUIDeFATE-0.062.tar.gz
Tests succeeded but one dependency not OK (Wx::Perl::Imagick)
  SAIFTYNET/GUIDeFATE-0.062.tar.gz
  [dependencies] -- NA

Testing from GUIDeFATE/Examples:

Can't locate GUIDeFATE.pm in @INC (you may need to install the GUIDeFATE module) (@INC contains: /usr/lib/perl5/5.26/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.26/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.26/core_perl /usr/share/perl5/core_perl) at rpsls.pl line 7.
BEGIN failed--compilation aborted at rpsls.pl line 7.

When trying to install Wx::Perl::Imagick:

Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/home/naltun/.cpan/Metadata'
  Database was generated on Wed, 28 Feb 2018 12:41:03 GMT
Running install for module 'Wx::Perl::Imagick'
Checksum for /home/naltun/.cpan/sources/authors/id/J/JO/JOUKE/Wx-Perl-Imagick-0.02.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring J/JO/JOUKE/Wx-Perl-Imagick-0.02.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Could not open 'lib\Wx\Perl\Imagick.pm': No such file or directory at /usr/share/perl5/core_perl/ExtUtils/MM_Unix.pm line 2876.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
  JOUKE/Wx-Perl-Imagick-0.02.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK

Hmmm... I haven't used Perl much so I'll have to tinker.

naltun avatar Feb 28 '18 13:02 naltun

Hi Noah, to install Wx::Perl::Imagick, in Unix | Linux | (Macs)? download the archive from (MetaCPAN)[https://cpan.metacpan.org/authors/id/J/JO/JOUKE/Wx-Perl-Imagick-0.02.tar.gz] etxract it and edit the Makefile.PL so that back slashes are forward slashes. Then in that folder run

perl Makefile.PL
make
make test 
make install

saiftynet avatar Feb 28 '18 19:02 saiftynet

If you do finally get to install v 0.062, then note the scripts related to old versions may not work (not sure how syncing works in github)

saiftynet avatar Feb 28 '18 21:02 saiftynet

Have removed dependency requirement...nobody is likely to have all the back-ends installed, and making any missing dependency a requirement causes everything to fail.

saiftynet avatar Mar 18 '18 12:03 saiftynet

I'm having trouble installing Wx::Perl::Imagick. I think once I get this installed, everything else will be a breeze.

Edit: As a result, I can't test the installation fully (just yet).

naltun avatar Mar 19 '18 14:03 naltun

If you have GTK, or QT you don't need an external renderer, so that dependency is not an absolute requirement. If you have Tk, then you can get away with just Image Magick. Wx::Perl::Imagick does not appear to install in Linux systems only because the Makefile contains a non-Unix Makefile.PL (the folder paths are not correctly written) I have a modified Linux variant copy of this if you do wish to try it.

EDIT: The Default on the "Executioner.pl" test launcher is Wx...and that may the problem. Try editing the file to make Tk or something like that the default...I need to create a test to see what back-end might work and set that as the default somehow...

saiftynet avatar Mar 19 '18 20:03 saiftynet

Hello saiftynet. Thanks for developing this tool. It appears that my problems are related to using Linux and to the above mentioned issues with Executioner.pl and Wx. I'm running KDE and therefore I have Qt 5 installed by default. Can you explain specifically how I need to use the Linux variant with Qt to try out the example apps. My first goal is to learn how to use GUIDeFATE by playing with the examples. Therefore, I need to get the examples working first.

MountainX avatar Dec 25 '19 20:12 MountainX

Hi Dave,

Sadly Perl dies not work with Qt5, so neither does GUIDeFATE. What distro are you using? QT4 core is required, but the version on CPAN also does not work. Ubuntu's repos have all you need. I would like to get a consistent, reproducible way for installation. I confess I am a newbie myself. This tool is due to have a major change to allow easier installation. Your help would be appreciated.

Saif

On Wed, 25 Dec 2019, 20:28 Dave, [email protected] wrote:

Hello saiftynet. Thanks for developing this tool. It appears that my problems are related to using Linux and to the above mentioned issues with Executioner.pl and Wx. I'm running KDE and therefore I have Qt 5 installed by default. Can you explain specifically how I need to use the Linux variant with Qt to try out the example apps. My first goal is to learn how to use GUIDeFATE by playing with the examples. Therefore, I need to get the examples working first.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/saiftynet/GUIDeFATE/issues/4?email_source=notifications&email_token=AIFSI545ODMMN4LZOKLNJCTQ2O67DA5CNFSM4ESDQRC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUS6YA#issuecomment-568930144, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIFSI556ADFMPPPPEEK7NSTQ2O67DANCNFSM4ESDQRCQ .

saiftynet avatar Dec 25 '19 22:12 saiftynet

Qt4 install from repositories in Debian uses sudo apt install libsmokeqt4-dev libqt4-dev-tools libqt*-perl. Do this, rather than try and install from CPAN.

saiftynet avatar Dec 26 '19 11:12 saiftynet