blead perl cygwin dl library missing || strawberry perl mingw and cygwin
don't mixby default cygwin will import the path of the system into the
cygwin shell. I found that I could not build perl build properly because it
was mixing strawberry and cygwin components. To resolve the -ldl; (i
ultimately left it in), I removed all the strawberry paths from my PATH env
before running configure. ie. "export PATH=/usr/local/bin:/usr/bin" You
will see that configure no longer finds the strawberry binaries and default
settings provide a working build.
#31999: Under cygwin, cygwin's 'cpan' is used instead of Strawberry's
'cpan.bat' <https://rt.cpan.org/Ticket/Display.html?id=31999> - other
people apparently want Strawberry in their cygwin, "Strawberry is not
compatible with cygwin. Closing."
I was able to produce a 5.21.3 that worked; issue being all the MyConfig.pm
and other setting which were pointing to strawberry perl's env. which is
resolved by overriding HOME and creating a basic empty config; followed by
cpan: o conf init.

export HOME=/cygdrive/d/working/perl/build
mkdir $HOME/.cpan/CPAN/
echo "\$CPAN::Config->{cpan_home}='$HOME/.cpan';" > $HOME/.cpan/CPAN/MyConfig.pm


the issue now is that I can't install gpg using the cygwin64 installer; it
isn't available, which shouldn't be a problem really.  But cpan keeps
saying "Press SPACE and ENTER to disable gpg" repeatedly, no matter how
hard I stand on space, enter, and space+enter together.  I guess I'm going
to play with config file modifications...maybe even point it at
strawberry's gpg.  But I wanted to mention I got perl blead built and that
there is a strange infinite loop in the questioning of the gpg tool?

thanks.
--dave
http://dave.thehorners.com/tech-talk/windows-os/254-windows-and-cygwinmingwcolinux-dump-some-gpl-in-your-win32

On Mon, Aug 11, 2014 at 1:51 AM, Dave Horner <[email protected]>
wrote:

> hello everyone,
>
> work on this perl quest:
> https://questhub.io/realm/perl/quest/53d39f40b587a43011000143
>
> trying to get cygwin64 perl blead smoking.
>
> still working my way through that tutorial with cygwin. configure told me:
> Found -ldl.
> What libraries to use? [-lgdbm -ldb -ldl -lgdbm_compat]
> used the command:
> gcc -o try -O3 -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fwrapv -fno-str
> ict-aliasing -pipe -fstack-protector -Wl,--enable-auto-import
> -Wl,--export-all-s ymbols -Wl,--enable-auto-image-base -fstack-protector
> -L/usr/local/lib try.c -lg dbm -ldb -ldl -lgdbm_compat
> ./try
> and I got the following output:
> c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.7.3/../../../../x86_64-w64-m
> ingw32/bin/ld.exe: cannot find -ldl
> collect2.exe: error: ld returned 1 exit status
>
> I started a cygwin64 terminal, surprised by the mingw32 tools being used
> from strawberry.
> Anyways, I changed the answer (-ldl) to -lgdbm -ldb -lgdbm_compat; and
> configure now tells me compile OK but produced no output. no makefiles
> generated.
>
> I'm assuming I am getting things mixed up with strawberry mingw and cygwin
> mingw tools mismatch...but not sure.
>
> thanks for any thoughts or suggestions!
> --dave
>
> http://dave.thehorners.com/tech-talk/programming/532-perl-troubleshooting-and-debugging-hanging-camels
>

Reply via email to