I cannot build my yocto distro (from 'pyro' version) when upgrade the meta-qt5 to the Qt version 5.15.2: I checkout the repository of meta-qt5 to the master branch that now support the qt 5.15.2, but I got some error on configuration about openssl and pcre2.
I'm using a container with ubuntu 18.04 as build system (to have the openssl version 1.1.1 as required by QT5.15.x) but I cannot solve that errors during the build of qtbase recipe:
| ERROR: Feature 'system-pcre2' was enabled, but the pre-condition 'libs.pcre2' failed.
|
| ERROR: Feature 'openssl-runtime' was enabled, but the pre-condition '!features.securetransport && !features.schannel && libs.openssl_headers' failed.
| WARNING: exit code 3 from a shell command.
I tried to comment the pcre and openssl packegeconfig into the qtbase recipe (to workaround that problems) but it didn't solve it.
The configuration return:
Configure summary:
Building on: linux-oe-g++ (arm, CPU features: neon)
Building for: linux-oe-g++ (arm, CPU features: neon)
Target compiler: gcc 6.3.0
Configuration: cross_compile compile_examples enable_new_dtags largefile neon silent shared shared release c++11 c++14 concurrent dbus reduce_exports stl
Build options:
Mode ................................... release
Optimize release build for size ........ no
Building shared libraries .............. yes
Using C standard ....................... C11
Using C++ standard ..................... C++14
Using ccache ........................... no
Using new DTAGS ........................ yes
Relocatable ............................ yes
Using precompiled headers .............. no
Using LTCG ............................. no
Target compiler supports:
NEON ................................. yes
Build parts ............................ libs tests tools
Qt modules and options:
Qt Concurrent .......................... yes
Qt D-Bus ............................... yes
Qt D-Bus directly linked to libdbus .... yes
Qt Gui ................................. yes
Qt Network ............................. yes
Qt Sql ................................. yes
Qt Testlib ............................. yes
Qt Widgets ............................. yes
Qt Xml ................................. yes
Support enabled for:
Using pkg-config ....................... yes
udev ................................... yes
Using system zlib ...................... yes
Zstandard support ...................... no
Qt Core:
DoubleConversion ....................... yes
Using system DoubleConversion ........ no
GLib ................................... no
iconv .................................. no
ICU .................................... no
Built-in copy of the MIME database ..... yes
Tracing backend ........................ <none>
Logging backends:
journald ............................. no
syslog ............................... no
slog2 ................................ no
PCRE2 .................................. no
Using system PCRE2 ................... no
Qt Network:
getifaddrs() ........................... yes
IPv6 ifname ............................ yes
libproxy ............................... no
Linux AF_NETLINK ....................... yes
OpenSSL ................................ no
Qt directly linked to OpenSSL ........ no
OpenSSL 1.1 ............................ no
DTLS ................................... no
OCSP-stapling .......................... no
SCTP ................................... no
Use system proxies ..................... yes
GSSAPI ................................. no
Qt Gui:
Accessibility .......................... yes
FreeType ............................... yes
Using system FreeType ................ yes
HarfBuzz ............................... yes
Using system HarfBuzz ................ no
Fontconfig ............................. no
Image formats:
GIF .................................. yes
ICO .................................. no
JPEG ................................. yes
Using system libjpeg ............... yes
PNG .................................. yes
Using system libpng ................ yes
Text formats:
HtmlParser ........................... yes
CssParser ............................ yes
OdfWriter ............................ yes
MarkdownReader ....................... yes
Using system libmd4c ............... no
MarkdownWriter ....................... yes
EGL .................................... yes
OpenVG ................................. yes
OpenGL:
Desktop OpenGL ....................... no
OpenGL ES 2.0 ........................ yes
OpenGL ES 3.0 ........................ yes
OpenGL ES 3.1 ........................ no
OpenGL ES 3.2 ........................ no
Vulkan ................................. no
Session Management ..................... no
Features used by QPA backends:
evdev .................................. yes
libinput ............................... no
INTEGRITY HID .......................... no
mtdev .................................. no
tslib .................................. no
xkbcommon .............................. no
X11 specific:
XLib ................................. no
XCB Xlib ............................. no
EGL on X11 ........................... no
xkbcommon-x11 ........................ no
QPA backends:
DirectFB ............................... no
EGLFS .................................. yes
EGLFS details:
EGLFS OpenWFD ........................ no
EGLFS i.Mx6 .......................... yes
EGLFS i.Mx6 Wayland .................. no
EGLFS RCAR ........................... no
EGLFS EGLDevice ...................... no
EGLFS GBM ............................ no
EGLFS VSP2 ........................... no
EGLFS Mali ........................... no
EGLFS Raspberry Pi ................... no
EGLFS X11 ............................ no
LinuxFB ................................ no
VNC .................................... no
Qt Sql:
SQL item models ........................ yes
Qt Widgets:
GTK+ ................................... no
Styles ................................. Fusion Windows
Qt PrintSupport:
CUPS ................................... no
Qt Sql Drivers:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. no
OCI (Oracle) ........................... no
ODBC ................................... no
PostgreSQL ............................. no
SQLite2 ................................ no
SQLite ................................. yes
Using system provided SQLite ......... yes
TDS (Sybase) ........................... no
Qt Testlib:
Tester for item models ................. yes
Note: Overriding option 'eglfs' with 'yes' (was: 'no')
Note: -hostbindir is not a subdirectory of -hostprefix.
Note: -hostlibdir is not a subdirectory of -hostprefix.
Note: -hostdatadir is not a subdirectory of -hostprefix.
ERROR: Feature 'system-pcre2' was enabled, but the pre-condition 'libs.pcre2' failed.
ERROR: Feature 'openssl-runtime' was enabled, but the pre-condition '!features.securetransport && !features.schannel && libs.openssl_headers' failed.
WARNING: exit code 3 from a shell command.
ERROR: Function failed: do_configure (log file is located at /yocto/pyro/build/tmp/work/armv7at2hf-neon-mx6sx-fslc-linux-gnueabi/qtbase/5.15.2+gitAUTOINC+40143c189b-r0/temp/log.do_configure.1849)
Try to use OpenSSL of honister (or any other poky that uses OpenSSL 1.1.x) and overwrite the prefered version of openssl in poky/meta/conf/distro/include/default-versions.inc.
Could be that you have to change the new Yocto x:append syntax back to the old x_append, depending on what Yocto version you take the OpenSSL recipe from.
Related
I installed Perl from ActiveState. Plain version with no extensions. Windows 10.
"This is perl 5, version 28, subversion 1 (v5.28.1) built for MSWin32-x64-multi-thread"
A pre-existing perl script that I need to use accesses PostScript::Simple so I need to add that to my install.
Supposedly, the right way to do this is to open cpan and run the command "install PostScript::Simple".
However, it eventually fails with a dmake error. I've tried cpan install dmake and appears to be trying to do so, but that also fails.
Loading internal logger. Log::Log4perl recommended for better logging
Reading 'H:\.cpan\Metadata'
Database was generated on Wed, 25 Sep 2019 15:55:37 GMT
Running install for module 'PostScript::Simple'
CPAN: Digest::SHA loaded ok (v6.01)
CPAN: Compress::Zlib loaded ok (v2.074)
Checksum for H:\.cpan\sources\authors\id\M\MC\MCNEWTON\PostScript-Simple-0.09.tar.gz ok
CPAN: Archive::Tar loaded ok (v2.30)
'YAML' not installed, will not store persistent state
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20181129_28)
Configuring M/MC/MCNEWTON/PostScript-Simple-0.09.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for PostScript::Simple
Writing MYMETA.yml and MYMETA.json
MCNEWTON/PostScript-Simple-0.09.tar.gz
C:\Perl64\bin\perl.exe Makefile.PL -- OK
Running make for M/MC/MCNEWTON/PostScript-Simple-0.09.tar.gz
**'dmake' is not recognized as an internal or external command,**
operable program or batch file.
MCNEWTON/PostScript-Simple-0.09.tar.gz
dmake -- NOT OK
Runcpan, and execute the following:
o conf make
Here's an example from one of my Windows systems:
cpan> o conf make
make [C:\STRAWB~1\c\bin\gmake.exe]
Check to see if the file listed in the make option is available on your system where cpan thinks it is (the entry may just be missing the path information to the binary).
If it's not, either find it, or look for another make program (gmake.exe is common), then enter the path and the make program's filename with the configuration command under cpan:
cpan> o conf make C:\\Strawberry\\c\\bin\\gmake.exe
make [C:\Strawb~1\c\bin\gmake.exe]
commit: wrote 'C:\Strawberry\perl\lib/CPAN/Config.pm'
UPDATE:
One difference I found was that Data::Show uses Module::Build, while Data::Dumper uses a Build file (using vimdiff):
I've noticed that with cpan and cpanm, some modules are not reinstalled when there isn't a newer version, but others are reinstalled every time. I don't have anything in my PERL5LIB variable and my #INC includes all the right paths. I am using perlbrew, but I think that I had similar problems using a custom-built perl:
%ENV:
PERLBREW_BASHRC_VERSION="0.73"
PERLBREW_HOME="/home/username/.perlbrew"
PERLBREW_MANPATH="/home/username/perl5/perlbrew/perls/perl-5.20.1/man"
PERLBREW_PATH="/home/username/perl5/perlbrew/bin:/home/user/perl5/perlbrew/perls/perl-5.20.1/bin"
PERLBREW_PERL="perl-5.20.1"
PERLBREW_ROOT="/home/username/perl5/perlbrew"
PERLBREW_VERSION="0.73"
PERLDEV="/share/data/username/Perl5"
#INC:
/home/username/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/x86_64-linux
/home/username/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1
/home/username/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1/x86_64-linux
/home/username/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1
Data::Dumper doesn't get reinstalled when there isn't a newer version:
cpanm Data::Dumper
Data::Dumper is up to date. (2.154)
However, Data::Show gets reinstalled every time:
$ cpanm Data::Show
--> Working on Data::Show
Fetching http://www.cpan.org/authors/id/D/DC/DCONWAY/Data-Show-0.002002.tar.gz ... OK
Configuring Data-Show-0.002002 ... OK
Building and testing Data-Show-0.002002 ... OK
Successfully installed Data-Show-0.002002
1 distribution installed
$ cpanm Data::Show
--> Working on Data::Show
Fetching http://www.cpan.org/authors/id/D/DC/DCONWAY/Data-Show-0.002002.tar.gz ... OK
Configuring Data-Show-0.002002 ... OK
Building and testing Data-Show-0.002002 ... OK
Successfully installed Data-Show-0.002002
1 distribution installed
Results of cpanm -v Data::Show
cpanm (App::cpanminus) 1.7027 on perl 5.020001 built for x86_64-linux
Work directory is /home/username/.cpanm/work/1424150236.20375
You have make /usr/bin/make
You have LWP 6.13
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Data::Show on cpanmetadb ...
--> Working on Data::Show
Fetching http://www.cpan.org/authors/id/D/DC/DCONWAY/Data-Show-0.002002.tar.gz ... OK
Unpacking Data-Show-0.002002.tar.gz
Data-Show-0.002002/
Data-Show-0.002002/Build.PL
Data-Show-0.002002/Changes
Data-Show-0.002002/lib/
Data-Show-0.002002/Makefile.PL
Data-Show-0.002002/MANIFEST
Data-Show-0.002002/META.yml
Data-Show-0.002002/README
Data-Show-0.002002/t/
Data-Show-0.002002/t/00.load.t
Data-Show-0.002002/t/pod.t
Data-Show-0.002002/t/show.t
Data-Show-0.002002/lib/Data/
Data-Show-0.002002/lib/Data/Show.pm
Entering Data-Show-0.002002
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.98)
Running Build.PL
Configuring Data-Show-0.002002 ... Module::Build will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at Build.PL, line 3.
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Data-Show' version '0.002002'
OK
Checking dependencies from MYMETA.json ...
Checking if you have version 0 ... Yes (0.9909)
Checking if you have Data::Dump 1.17 ... Yes (1.22)
Checking if you have Test::More 0 ... Yes (1.001014)
Building and testing Data-Show-0.002002 ... Module::Build will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at ./Build, line 40.
Building Data-Show
Module::Build will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at ./Build, line 40.
t/00.load.t .. 1/1 # Testing Data::Show 0.002002
t/00.load.t .. ok
t/pod.t ...... skipped: Test::Pod 1.14 required for testing POD
t/show.t ..... Smartmatch is experimental at t/show.t line 28.
t/show.t ..... ok
All tests successful.
Files=3, Tests=64, 1 wallclock secs ( 0.06 usr 0.02 sys + 0.12 cusr 0.03 csys = 0.23 CPU)
Result: PASS
Module::Build will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at ./Build, line 40.
Building Data-Show
OK
Successfully installed Data-Show-0.002002
Installing /home/username/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/x86_64-linux/.meta/Data-Show-0.002002/install.json
1 distribution installed
Very interestingly, they are not both installing to a place that perldoc can see:
$ perldoc -l Data::Dump
/home/username/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Data/Dump.pm
$ perldoc -l Data::Show
No documentation found for "Data::Show".
It looks like my problem was that Build.PL files are not working for some reason. When I saw that Data::Show comes with both a Build.PL file and a Makefile.PL, I tried installing it manually using the Makefile and then it installed:
perl Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Data::Show
Writing MYMETA.yml and MYMETA.json
$ make
cp lib/Data/Show.pm blib/lib/Data/Show.pm
Manifying blib/man3/Data::Show.3
$ make install
Installing /home/username/perl5/perlbrew/perls/perl-5.20.1/lib/site_perl/5.20.1/Data/Show.pm
Installing /home/username/perl5/perlbrew/perls/perl-5.20.1/man/man3/Data::Show.3
Appending installation info to /home/username/perl5/perlbrew/perls/perl-5.20.1/lib/5.20.1/x86_64-linux/perllocal.pod
$ cpanm Data::Show
Data::Show is up to date. (0.002002)
I am having hard times to configure Eclipse Juno to for C/C++. I am a Windows user, so I have installed Cygwin and MinGW, and CDT under Eclipse. Also configured the PATH variable correctly, though I still do not have any new toolchain in Eclipse C/C++ new project.
These are my Eclipse details:
Eclipse Java EE IDE for Web Developers.
Version: Juno Release
Build id: 20120614-1722
Also, see image of installed component of Eclipse.
Enclosed some outout from Windows command line:
C:\>echo %path%
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x8
6)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\
Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Fil
es (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\MiKTeX 2.9\miktex
\bin\x64\;C:\Program Files\MATLAB\R2011b\runtime\win64;C:\Program Files\MATLAB\R
2011b\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Java\jdk\b
in;C:\Program Files (x86)\Java\jre\bin;C:\Program Files (x86)\Android\android-sd
k\platform-tools;C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Fil
es\Python32;C:\Program Files (x86)\Notepad++;C:\tomcat\bin;C:\Users\Administrato
r\AppData\Roaming\npm;C:\Program Files (x86)\Gnu\GnuWin32\bin;C:\Program Files\n
odejs;C:\Users\Administrator\AppData\Roaming\npm;C:\MinGW\bin;C:\MSYS\bin;C:\cyg
win\bin
C:\>gdb --version
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
C:\>make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-pc-mingw32
C:\>g++ --version
g++ (GCC) 4.7.0
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
C:\>gcc --version
gcc (GCC) 4.7.0
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Enclosed output from Cygwin shell:
Cygwin Package Information
Package Version Status
_autorebase 000085-1 OK
_update-info-dir 01054-1 OK
alternatives 1.3.30c-10 OK
autoconf 10-1 OK
autoconf2.1 2.13-10 OK
autoconf2.5 2.68-1 OK
automake1.9 1.9.6-10 OK
base-cygwin 3.1-1 OK
base-files 4.1-1 OK
bash 4.1.10-4 OK
binutils 2.22.51-2 OK
bzip2 1.0.6-2 OK
colorgcc 1.3.2-2 OK
coreutils 8.15-1 OK
crypt 1.2-1 OK
cygutils 1.4.10-2 OK
cygwin 1.7.15-1 OK
cygwin-doc 1.7-1 OK
dash 0.5.7-1 OK
dejagnu 20021217-2 OK
diffutils 3.2-1 OK
dos2unix 6.0-1 OK
editrights 1.01-2 OK
expect 5.45-1 OK
file 5.11-1 OK
findutils 4.5.9-2 OK
gawk 4.0.1-1 OK
gcc 3.4.4-999 OK
gcc-core 3.4.4-999 OK
gcc-g++ 3.4.4-999 OK
gcc-mingw 20040810-1 OK
gcc-mingw-core 20050522-3 OK
gcc-mingw-g++ 20050522-3 OK
gcc-tools-epoch1-autoconf 2.59-1 OK
gcc-tools-epoch1-automake 1.9.6-1 OK
gcc-tools-epoch2-autoconf 2.64-1 OK
gcc-tools-epoch2-automake 1.11.1-1 OK
gcc4 4.5.3-3 OK
gcc4-core 4.5.3-3 OK
gcc4-g++ 4.5.3-3 OK
gdb 7.3.50-3 OK
gdbm 1.8.3-20 OK
gettext 0.18.1.1-2 OK
grep 2.6.3-1 OK
groff 1.21-2 OK
gzip 1.4-1 OK
ipc-utils 1.0-1 OK
less 444-1 OK
libattr1 2.4.46-1 OK
libbz2_1 1.0.6-2 OK
libcloog0 0.15.7-1 OK
libdb4.5 4.5.20.2-3 OK
libffi4 4.5.3-3 OK
libgcc1 4.5.3-3 OK
libgdbm 1.8.0-5 OK
libgdbm-devel 1.8.3-20 OK
libgdbm4 1.8.3-8 OK
libgmp3 4.3.2-1 OK
libgmpxx4 4.3.2-1 OK
libgomp1 4.5.3-3 OK
libiconv2 1.14-2 OK
libintl3 0.14.5-1 OK
libintl8 0.18.1.1-2 OK
liblzma5 5.0.2_20110517-1 OK
libmpc1 0.8-1 OK
libmpfr1 2.4.1-4 OK
libmpfr4 3.0.1-1 OK
libncurses10 5.7-18 OK
libncurses9 5.7-16 OK
libncursesw10 5.7-18 OK
libpcre0 8.21-2 OK
libpopt0 1.6.4-4 OK
libppl 0.10.2-1 OK
libreadline7 6.1.2-3 OK
libsigsegv2 2.10-1 OK
libssp0 4.5.3-3 OK
libstdc++6 4.5.3-3 OK
libstdc++6-devel 4.5.3-3 OK
login 1.10-10 OK
m4 1.4.16-1 OK
make 3.82.90-1 OK
man 1.6g-1 OK
mingw-binutils 2.21-1 OK
mingw-gcc-core 4.5.2-1 OK
mingw-gcc-g++ 4.5.2-1 OK
mingw-pthreads 20110507-1 OK
mingw-runtime 3.20-1 OK
mingw-w32api 3.17-2 OK
mingw64-i686-binutils 2.22.52-1 OK
mingw64-i686-gcc 4.5.3-6 OK
mingw64-i686-gcc-core 4.5.3-6 OK
mingw64-i686-gcc-g++ 4.5.3-6 OK
mingw64-i686-headers 3.0b_svn5134-1 OK
mingw64-i686-pthreads 20100619-4 OK
mingw64-i686-runtime 3.0b_svn5134-1 OK
mingw64-x86_64-binutils 2.22.52-1 OK
mingw64-x86_64-gcc 4.5.3-6 OK
mingw64-x86_64-gcc-core 4.5.3-6 OK
mingw64-x86_64-gcc-g++ 4.5.3-6 OK
mingw64-x86_64-headers 3.0b_svn5134-1 OK
mingw64-x86_64-pthreads 20100619-4 OK
mingw64-x86_64-runtime 3.0b_svn5134-1 OK
mintty 1.1.1-1 OK
perl 5.10.1-5 OK
rebase 4.2.0-1 OK
run 1.1.13-1 OK
sed 4.2.1-2 OK
tar 1.25-1 OK
tcl 8.5.11-1 OK
terminfo 5.7_20091114-14 OK
texinfo 4.13-4 OK
tzcode 2012b-1 OK
w32api 3.17-2 OK
which 2.20-2 OK
xz 5.0.2_20110517-1 OK
zlib0 1.2.7-1 OK
I am also familiar with Why doesn't MinGW show up in the list of Eclipse/Indigo CDT Toolchains? and How to deal with Eclipse CDT+Cygwin? and http://wyding.blogspot.com/2009/04/setup-cygwin-toolchain-in-eclipse-cdt.html
Could anyone help me realize what is wrong?
I have the same problem.
I have found two possible solutions:
Uncheck "Show project types and toolchains only if they are supported on the platform" when you choose "New Project->C++ Project->Project Type: Executable".
Uninstall the "GNU Autotools", then you can see options that you want.
Per the CDT help page: http://wiki.eclipse.org/CDT/User/FAQ#I_installed_MinGW_toolchain_on_my_PC_but_Eclipse_won.27t_find_it.
Despite having g++.exe or gcc.exe on your PATH and having defined MINGW_HOME, you may still get a “Toolchain "MinGW GCC" is not detected” message (CDT 8.4 on Luna 4.4.0). Make sure that a file called "mingw32-gcc.exe" exists in MINGW_HOME\bin. If it doesn't exist (which happens with MinGW-W64), copy a -gcc.exe file (e.g. i686-w64-mingw32-gcc.exe) to mingw32-gcc.exe. If the dreaded message still lingers around, reboot your system (don't just logout and login).
I had the same problem. I fixed it by adding the location of my cygwin compiler programs to PATH. Maby you did not properly add the location. For cygwin, have the path go to the bin folder.
Eclipse tries to figure out where is cygwin1.dll. But this file is in many programs previously built with cygwin. So Eclipse could find this before the right cygwin installed.
So a possible solution could be to put the C:\cygwin\bin at the begining of the PATH variable, so Eclipse searches there before.
I couldn't make the Eclipse (LUNA) locate MinGW on my computer (there were no MinGW available in Preferences>C/C++/New C/C++ Project Wizard) even after I have specified PATH as "C:\MinGW\bin" in Preferences>C/C++/Build>Environment, so what I did afterwards was:
Create a simple "Hello world" C project without specifying any toolchains
(at this step I tried to Build All, and it failed)
Go to Project>Properties, suprisingly, here I could see MinGW GCC as an available choice for Current toolchain. Select it.
Now I could build and run the project
Hopefully, it helps!
I'm trying to install the Test::Continuous Perl module on my MacBook Pro with Snow Leopard installed using the following command:
sudo -s 'curl -L cpanmin.us | perl - Test::Continuous'
Unfortunately, all I'm getting back is:
--> Working on Test::Continuous
Fetching http://search.cpan.org/CPAN/authors/id/G/GU/GUGOD/Test-Continuous-0.69.tar.gz ... OK
Configuring Test-Continuous-0.69 ... OK
==> Found dependencies: Log::Dispatch::DesktopNotification
--> Working on Log::Dispatch::DesktopNotification
Fetching http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Log-Dispatch-DesktopNotification-0.01.tar.gz ... OK
Configuring Log-Dispatch-DesktopNotification-0.01 ... OK
==> Found dependencies: Log::Dispatch::MacGrowl
--> Working on Log::Dispatch::MacGrowl
Fetching http://search.cpan.org/CPAN/authors/id/R/RY/RYOCHIN/Log-Dispatch-MacGrowl/Log-Dispatch-MacGrowl-0.02.tar.gz ... OK
Configuring Log-Dispatch-MacGrowl-0.02 ... OK
==> Found dependencies: Mac::Growl
--> Working on Mac::Growl
Fetching http://search.cpan.org/CPAN/authors/id/C/CN/CNANDOR/Mac-Growl-0.67.tar.gz ... OK
Configuring Mac-Growl-0.67 ... OK
Building and testing Mac-Growl-0.67 ... FAIL
! Installing Mac::Growl failed. See /Users/purinkle/.cpanm/build.log for details.
! Bailing out the installation for Log-Dispatch-MacGrowl-0.02. Retry with --prompt or --force.
! Bailing out the installation for Log-Dispatch-DesktopNotification-0.01. Retry with --prompt or --force.
! Bailing out the installation for Test-Continuous-0.69. Retry with --prompt or --force.
When I cat the build.log file as mentioned it contains the following:
Work directory is /Users/purinkle/.cpanm/work/1301425867.22435
You have make /usr/bin/make
You have LWP 5.813
You have /usr/bin/tar: bsdtar 2.6.2 - libarchive 2.6.2
You have /usr/bin/unzip
Searching Test::Continuous on cpanmetadb ...
--> Working on Test::Continuous
Fetching http://search.cpan.org/CPAN/authors/id/G/GU/GUGOD/Test-Continuous-0.69.tar.gz
-> OK
Unpacking Test-Continuous-0.69.tar.gz
Entering Test-Continuous-0.69
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56)
Configuring Test-Continuous-0.69
Running Makefile.PL
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
*** Since we're running under CPAN, I'll just let it take care
of the dependency's installation later.
[Core Features]
- Test::More ...loaded. (0.98 >= 0.42)
- Exporter::Lite ...loaded. (0.02 >= 0.02)
- File::Spec ...loaded. (3.33 >= 3.29)
- File::Temp ...loaded. (0.22 >= 0.21)
- List::MoreUtils ...loaded. (0.22 >= 0.22)
- Log::Dispatch ...loaded. (2.29 >= 2.22)
- Module::ExtractUse ...loaded. (0.23 >= 0.23)
- TAP::Harness ...loaded. (3.22 >= 3.16)
- self ...loaded. (0.34 >= 0.32)
- File::ChangeNotify ...loaded. (0.19 >= 0.12)
[Graphical notifications]
- Log::Dispatch::DesktopNotification ...missing.
==> Auto-install the 1 optional module(s) from CPAN? [Y/n] y
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Warning: prerequisite Log::Dispatch::DesktopNotification 0 not found.
Writing Makefile for Test::Continuous
-> OK
Finding PREREQ from Makefile ...
Checking if you have Exporter::Lite 0.02 ... Yes (0.02)
Checking if you have File::Spec 3.29 ... Yes (3.33)
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56)
Checking if you have self 0.32 ... Yes (0.34)
Checking if you have TAP::Harness 3.16 ... Yes (3.22)
Checking if you have Module::ExtractUse 0.23 ... Yes (0.23)
Checking if you have File::ChangeNotify 0.12 ... Yes (0.19)
Checking if you have Test::More 0.42 ... Yes (0.98)
Checking if you have Log::Dispatch::DesktopNotification 0 ... No
Checking if you have File::Temp 0.21 ... Yes (0.22)
Checking if you have Log::Dispatch 2.22 ... Yes (2.29)
Checking if you have List::MoreUtils 0.22 ... Yes (0.22)
==> Found dependencies: Log::Dispatch::DesktopNotification
Searching Log::Dispatch::DesktopNotification on cpanmetadb ...
--> Working on Log::Dispatch::DesktopNotification
Fetching http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Log-Dispatch-DesktopNotification-0.01.tar.gz
-> OK
Unpacking Log-Dispatch-DesktopNotification-0.01.tar.gz
Entering Log-Dispatch-DesktopNotification-0.01
Checking configure dependencies from META.yml
Configuring Log-Dispatch-DesktopNotification-0.01
Running Makefile.PL
Cannot determine perl version info from lib/Log/Dispatch/DesktopNotification.pm
Warning: prerequisite Log::Dispatch::MacGrowl 0 not found.
Checking if your kit is complete...
Looks good
Writing Makefile for Log::Dispatch::DesktopNotification
-> OK
Finding PREREQ from Makefile ...
Checking if you have namespace::clean 0 ... Yes (0.14)
Checking if you have Log::Dispatch::MacGrowl 0 ... No
Checking if you have Module::Load 0 ... Yes (0.12)
Checking if you have ExtUtils::MakeMaker 6.56 ... Yes (6.56)
Checking if you have Log::Dispatch 0 ... Yes (2.29)
Checking if you have Module::Load::Conditional 0 ... Yes (0.22)
==> Found dependencies: Log::Dispatch::MacGrowl
Searching Log::Dispatch::MacGrowl on cpanmetadb ...
--> Working on Log::Dispatch::MacGrowl
Fetching http://search.cpan.org/CPAN/authors/id/R/RY/RYOCHIN/Log-Dispatch-MacGrowl/Log-Dispatch-MacGrowl-0.02.tar.gz
-> OK
Unpacking Log-Dispatch-MacGrowl-0.02.tar.gz
Entering Log-Dispatch-MacGrowl-0.02
Checking configure dependencies from META.yml
Checking if you have Module::Build 0.36 ... Yes (0.3607)
Configuring Log-Dispatch-MacGrowl-0.02
Running Build.PL
Checking prerequisites...
requires:
! Mac::Growl is not installed
recommends:
* Cocoa::Growl is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'Log-Dispatch-MacGrowl' version '0.02'
-> OK
Checking dependencies from MYMETA.yml ...
Checking if you have Mac::Growl 0 ... No
Checking if you have Log::Dispatch 0 ... Yes (2.29)
Checking if you have Test::More 0 ... Yes (0.98)
==> Found dependencies: Mac::Growl
Searching Mac::Growl on cpanmetadb ...
--> Working on Mac::Growl
Fetching http://search.cpan.org/CPAN/authors/id/C/CN/CNANDOR/Mac-Growl-0.67.tar.gz
-> OK
Unpacking Mac-Growl-0.67.tar.gz
Entering Mac-Growl-0.67
META.yml not found or unparsable. Fetching META.yml from search.cpan.org
Configuring Mac-Growl-0.67
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Mac::Growl
-> OK
Finding PREREQ from Makefile ...
Building and testing Mac-Growl-0.67
cp lib/Mac/Growl.pm blib/lib/Mac/Growl.pm
cp lib/Mac/Glue/glues/GrowlHelperApp blib/lib/Mac/Glue/glues/GrowlHelperApp
cp lib/Mac/Glue/glues/GrowlHelperApp.pod blib/lib/Mac/Glue/glues/GrowlHelperApp.pod
Manifying blib/man3/Mac::Growl.3pm
Manifying blib/man3/Mac::Glue::glues::GrowlHelperApp.3pm
Can't load '/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/MacPerl/MacPerl.bundle' for module MacPerl: /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/MacPerl/MacPerl.bundle: no appropriate 64-bit architecture (see "man perl" for running in 32-bit mode) at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm line 207.
at /System/Library/Perl/Extras/5.10.0/Mac/Glue/Common.pm line 21
Compilation failed in require at /System/Library/Perl/Extras/5.10.0/Mac/Glue/Common.pm line 21.
BEGIN failed--compilation aborted at /System/Library/Perl/Extras/5.10.0/Mac/Glue/Common.pm line 21.
Compilation failed in require at /usr/bin/gluemac5.10.0 line 27.
BEGIN failed--compilation aborted at /usr/bin/gluemac5.10.0 line 27.
make: *** [.makeglue] Error 9
-> FAIL Installing Mac::Growl failed. See /Users/purinkle/.cpanm/build.log for details.
-> FAIL Bailing out the installation for Log-Dispatch-MacGrowl-0.02. Retry with --prompt or --force.
-> FAIL Bailing out the installation for Log-Dispatch-DesktopNotification-0.01. Retry with --prompt or --force.
-> FAIL Bailing out the installation for Test-Continuous-0.69. Retry with --prompt or --force.
I've tried the --prompt and --force options but to not avail
Leave the system Perl alone and brew your own Perl.
Alternatives where Perl is part of a larger system: Homebrew, MacPorts, Fink
Although this answer is ten years on, it actually answers the question. The Mac::Growl module, an interface to the notification program Growl, needed Mac::Glue to work. Mac::Glue does not run on 64-bit architectures. It uses the ancient Carbon interface to AppleEvents. Here's the relevant line in the logs:
Can't load '/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/MacPerl/MacPerl.bundle' for module MacPerl: /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/MacPerl/MacPerl.bundle: no appropriate 64-bit architecture (see "man perl" for running in 32-bit mode) at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm line 207.
Curiously, Growl itself was retired at the end of 2020.
But, you might not want Mac::Growl at all. It's one of many possible ways to send notifications and Log::Dispatch::DesktopNotification is trying to install all sorts of things. But, that module isn't even a real dependency. Test::Continuous can work just fine without it. Sometimes in these situations, you can force install the troublesome module then try again.
I have Strawberry Perl 5.10 and mod_perl2 installed per these instructions on the mod_perl mailing list without a problem. However, trying to install various Apache2:: modules that my scripts use result in errors. One (Apache2::Reload) I was able to install despite this:
C:\>cpan -f Apache2::Reload
CPAN: CPAN::SQLite loaded ok (v0.199)
Database was generated on Tue, 09 Nov 2010 02:40:29 GMT
Running install for module 'Apache2::Reload'
Running make for P/PH/PHRED/Apache-Reload-0.11.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
CPAN: Compress::Zlib loaded ok (v2.03)
Checksum for C:\strawberry\cpan\sources\authors\id\P\PH\PHRED\Apache-Reload-0.11
.tar.gz ok
CPAN: Archive::Tar loaded ok (v1.66)
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.40)
CPAN: Module::CoreList loaded ok (v2.36)
CPAN.pm: Going to build P/PH/PHRED/Apache-Reload-0.11.tar.gz
Cannot opendir Y:\Apache\APACHE~2\lib: No such file or directory at C:/strawberr
y/perl/site/lib/Apache2/Build.pm line 1664.
Warning: No success on command[C:\strawberry\perl\bin\perl.exe Makefile.PL]
CPAN: YAML loaded ok (v0.71)
PHRED/Apache-Reload-0.11.tar.gz
C:\strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
C:\>
...just by copying a couple .pm files to site/lib. However, the others I am less sure about. For example, Apache2::RequestRec gives me the following errors:
C:\>cpan -f Apache2::RequestRec
CPAN: CPAN::SQLite loaded ok (v0.199)
Database was generated on Tue, 09 Nov 2010 02:40:29 GMT
CPAN: Module::CoreList loaded ok (v2.36)
Running install for module 'Apache2::RequestRec'
Running make for G/GO/GOZER/mod_perl-2.0.4.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
CPAN: Compress::Zlib loaded ok (v2.03)
Checksum for C:\strawberry\cpan\sources\authors\id\G\GO\GOZER\mod_perl-2.0.4.tar
.gz ok
CPAN: Archive::Tar loaded ok (v1.66)
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.40)
CPAN.pm: Going to build G/GO/GOZER/mod_perl-2.0.4.tar.gz
no conflicting prior mod_perl version found - good.
Next we need to know where the 'apxs' script is located. This script
provides a lot of information about the Apache installation, and makes
it easier to find things on your system. Normally it's located in the
same directory as the 'httpd' executable.
If you don't yet have Apache installed you can build Apache against
the Apache source code, but you won't be able to run the test suite (a
very important step). Therefore you may want to install Apache before
proceeding.
Please provide a full path to 'apxs' executable
(press Enter if you don't have it installed):
Please provide the location of the Apache directory: C:\Program Files\Apache So
ftware Foundation\Apache2.2
[ error] Unable to open C:\Program Files\Apache Software Foundation\Apache2.2/a
p_release.h: No such file or directory
[ error] Unable to determine server version, aborting.
[ error] Please specify MP_APXS or MP_AP_PREFIX.
Warning: No success on command[C:\strawberry\perl\bin\perl.exe Makefile.PL]
CPAN: YAML loaded ok (v0.71)
GOZER/mod_perl-2.0.4.tar.gz
C:\strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
C:\>
Is there some trick to compiling Apache2:: modules under Strawberry Perl? Do I need to compile my own Apache binaries too or something? (If so, can I do that with the make tools supplied with Strawberry?)
If you compile apache from source, you should have apxs.exe from apache.
Add that to PATH. You need the apache source code for some Apache:: bits.
Installing via those instructions actually installs all the Apache2:: modules, except for Apache2::Reload.