Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Problem installing Inline::Python

by paulorfmmb (Acolyte)
on Apr 23, 2018 at 15:02 UTC ( #1213443=perlquestion: print w/replies, xml ) Need Help??
paulorfmmb has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm a beginner in Perl. I'm trying to install Inline::Python, but I get this error
Running install for module 'Inline::Python' NINE/Inline-Python-0.56.tar.gz Has already been unwrapped into directory C:\strawberry\cpan\build\I +nline-Python-0.56-FjgGjd NINE/Inline-Python-0.56.tar.gz Has already been prepared Running make for N/NI/NINE/Inline-Python-0.56.tar.gz ---- Unsatisfied dependencies detected during ---- ---- NINE/Inline-Python-0.56.tar.gz ---- Proc::ProcessTable [build_requires] Running install for module 'Proc::ProcessTable' JWB/Proc-ProcessTable-0.55.tar.gz Has already been unwrapped into directory C:\strawberry\cpan\build\P +roc-ProcessTable-0.55-D7PRce JWB/Proc-ProcessTable-0.55.tar.gz Has already been prepared Running make for J/JW/JWB/Proc-ProcessTable-0.55.tar.gz dlltool --def ProcessTable.def --output-exp dll.exp g++ -o blib\arch\auto\Proc\ProcessTable\ProcessTable.dll -Wl,--base-fi +le -Wl,dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawb +erry\c\lib" ProcessTable.o C:\strawberry\perl\lib\CORE\libperl518.a + -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvap +i32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lw +inmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp ProcessTable.o:ProcessTable.c:(.text+0x3f): undefined reference to `OS +_initialize' ProcessTable.o:ProcessTable.c:(.text+0x3d2): undefined reference to `O +S_get_table' c:/strawberry/c/bin/../lib/gcc/i686-w64-mingw32/4.7.3/../../../../i686 +-w64-mingw32/bin/ld.exe: ProcessTable.o: bad reloc address 0x124 in s +ection `.rdata' c:/strawberry/c/bin/../lib/gcc/i686-w64-mingw32/4.7.3/../../../../i686 +-w64-mingw32/bin/ld.exe: final link failed: Invalid operation collect2.exe: error: ld returned 1 exit status dmake.exe: Error code 129, while making 'blib\arch\auto\Proc\ProcessT +able\ProcessTable.dll' JWB/Proc-ProcessTable-0.55.tar.gz C:\strawberry\c\bin\dmake.exe -- NOT OK Stopping: 'install' failed for 'Proc::ProcessTable'. Failed during this command: JWB/Proc-ProcessTable-0.55.tar.gz : make NO
I tried installing just Proc::ProcessTable but it comes up with this error
Running install for module 'Proc::ProcessTable' JWB/Proc-ProcessTable-0.55.tar.gz Has already been unwrapped into directory C:\strawberry\cpan\build\P +roc-ProcessTable-0.55-D7PRce JWB/Proc-ProcessTable-0.55.tar.gz Has already been prepared Running make for J/JW/JWB/Proc-ProcessTable-0.55.tar.gz dlltool --def ProcessTable.def --output-exp dll.exp g++ -o blib\arch\auto\Proc\ProcessTable\ProcessTable.dll -Wl,--base-fi +le -Wl,dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawb +erry\c\lib" ProcessTable.o C:\strawberry\perl\lib\CORE\libperl518.a + -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvap +i32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lw +inmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp ProcessTable.o:ProcessTable.c:(.text+0x3f): undefined reference to `OS +_initialize' ProcessTable.o:ProcessTable.c:(.text+0x3d2): undefined reference to `O +S_get_table' c:/strawberry/c/bin/../lib/gcc/i686-w64-mingw32/4.7.3/../../../../i686 +-w64-mingw32/bin/ld.exe: ProcessTable.o: bad reloc address 0x124 in s +ection `.rdata' c:/strawberry/c/bin/../lib/gcc/i686-w64-mingw32/4.7.3/../../../../i686 +-w64-mingw32/bin/ld.exe: final link failed: Invalid operation collect2.exe: error: ld returned 1 exit status dmake.exe: Error code 129, while making 'blib\arch\auto\Proc\ProcessT +able\ProcessTable.dll' JWB/Proc-ProcessTable-0.55.tar.gz C:\strawberry\c\bin\dmake.exe -- NOT OK Stopping: 'install' failed for 'Proc::ProcessTable'. Failed during this command: JWB/Proc-ProcessTable-0.55.tar.gz : make NO

Replies are listed 'Best First'.
Re: Problem installing Inline::Python
by NetWallah (Canon) on Apr 23, 2018 at 18:14 UTC
    This appears to be a problem with an attempt to cross-compile Linux code on Windows.

    The Inline::Python docs say:

    Previous versions of Inline::Python worked on Windows and Cygwin -- this version has never been tested there. I strongly suspect it will require patching. Please send me patches.
    So - it looks like the authors are looking for assistance in getting this to run on Windows.

                    Memory fault   --   brain fried

      Considering 50% of my job at $work is coding in Python, and although Unix is my primary Operating System, I do use Windows VMs to write berrybrew, I think I'll have a look at the issues the author is having and see if there's anything I can do (if I can get some time).

        That would be great Inline::Python today considered a must module on windows if you taking into considerations all the ML libraries that python have and Perl haven’t
Re: Problem installing Inline::Python
by karlgoethebier (Monsignor) on Apr 24, 2018 at 10:31 UTC
    "...Has already been unwrapped into directory C:\strawberry\cpan\build\Inline-Python-0.56-FjgGjd"

    Idea: From Proc::ProcessTable: Proc::ProcessTable - Perl extension to access the unix process table.

    Best regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

    perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1213443]
Approved by Athanasius
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2018-07-17 12:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (363 votes). Check out past polls.

    Notices?