Issue when installing lablgtk with opam - wsl-2

I'l trying to install a package (https://github.com/SchornacklabSLCU/amfinder) that use opam to install several libraries. However, two libraries failed to install: lablgtk and cairo2-gtk.I tried to install these two directly via opam (opam install labgtk) but got the same error:
User configuration:
~/.profile is already up-to-date.
[NOTE] Make sure that ~/.profile is well sourced in your ~/.bashrc.
[ERROR] There already is an installed switch named 4.08.0
[NOTE] Package camlzip is already installed (current version is 1.11).
[NOTE] Package magic-mime is already installed (current version is 1.2.0).
[NOTE] Package cairo2 is already installed (current version is 0.6.2).
[NOTE] Package odoc is already installed (current version is 2.0.0).
[NOTE] Package dune is already installed (current version is 2.9.1).
The following actions will be performed:
∗ install lablgtk 2.18.11
∗ install cairo2-gtk 0.6.2
===== ∗ 2 =====
Do you want to continue? [Y/n] y
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved cairo2-gtk.0.6.2 (cached)
⬇ retrieved lablgtk.2.18.11 (cached)
[ERROR] The compilation of lablgtk.2.18.11 failed at "./configure --prefix /home/alr/.opam/4.08.0
LABLGLDIR=/home/alr/.opam/4.08.0/lib/lablgl".
#=== ERROR while compiling lablgtk.2.18.11 ====================================#
# context 2.1.1 | linux/x86_64 | ocaml-base-compiler.4.08.0 | https://opam.ocaml.org#03fce048
# path ~/.opam/4.08.0/.opam-switch/build/lablgtk.2.18.11
# command ~/.opam/opam-init/hooks/sandbox.sh build ./configure --prefix /home/alr/.opam/4.08.0 LABLGLDIR=/home/alr/.opam/4.08.0/lib/lablgl
# exit-code 1
# env-file ~/.opam/log/lablgtk-16902-8d49b3.env
# output-file ~/.opam/log/lablgtk-16902-8d49b3.out
### output ###
# [...]
# checking native dynlink... checking for pkg-config... /home/linuxbrew/.linuxbrew/bin/pkg-config
# checking for GTK+ - version >= 2.0.0...
# *** 'pkg-config --modversion gtk+-2.0' returned 2.24.33, but GTK+ (2.24.32)
# *** was found! If pkg-config was correct, then it is best
# *** to remove the old version of GTK+. You may also be able to fix the error
# *** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
# *** /etc/ld.so.conf. Make sure you have run ldconfig if that is
# *** required on your system.
# *** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
# *** to point to the correct configuration files
# no
# configure: error: GTK+ is required
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build lablgtk 2.18.11
└─
╶─ No changes have been performed
<><> lablgtk.2.18.11 troubleshooting ><><><><><><><><><><><><><><><><><><><><><>
=> This package requires gtk+ 2.0 development packages installed on your system
File "dune", line 4, characters 29-39:
4 | (libraries lablgtk2 cairo2 cairo2-gtk camlzip magic-mime)
^^^^^^^^^^
Error: Library "cairo2-gtk" not found.
pkg-config --modversion gtk+-2.0returns 2.24.33
echo $LD_LIBRARY_PATHreturns empty path.
echo $PKG_CONFIG_PATHreturns /home/alr/.opam/4.08.0/lib/pkgconfig:
File /etc/ld.so.conf contains the following line: include /etc/ld.so.conf.d/*.conf
I am using WSL2 on Windows10 with Ubuntu18.04. libgtk2.0-dev is already installed.
I guess there is an error in path to library but cannot figure out how to solve it.
Any help would be greatly appreciated.
Thanks

Related

Yocto bitbake build error when adding fftw package

I am using Yocto Warrior release to build linux for Dart-imx8m SOM. Documentation can be found here : https://variwiki.com/index.php?title=DART-MX8M_Yocto&release=RELEASE_WARRIOR_V1.1_DART-MX8M.
I want to add fftw package whose recipe is in meta-oe layer. Whenever I add this package in my local.conf file, I get an error with bitbake regarding a dnf related task.
I add the package like this in my local.conf file : IMAGE_INSTALL_append = " fftw"
I get the following error when building image with bitbake fsl-image-gui :
ERROR: fsl-image-gui-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/safetyn/safetynYoctoGenerator/warrior/var-fsl-yocto/build_xwayland/tmp/work/imx8mq_var_dart-poky-linux/fsl-image-gui/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/safetyn/safetynYoctoGenerator/warrior/var-fsl-yocto/build_xwayland/tmp/work/imx8mq_var_dart-poky-linux/fsl-image-gui/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/safetyn/safetynYoctoGenerator/warrior/var-fsl-yocto/build_xwayland/tmp/work/imx8mq_var_dart-poky-linux/fsl-image-gui/1.0-r0/rootfs/etc/yum.repos.d --installroot=/home/safetyn/safetynYoctoGenerator/warrior/var-fsl-yocto/build_xwayland/tmp/work/imx8mq_var_dart-poky-linux/fsl-image-gui/1.0-r0/rootfs --setopt=logdir=/home/safetyn/safetynYoctoGenerator/warrior/var-fsl-yocto/build_xwayland/tmp/work/imx8mq_var_dart-poky-linux/fsl-image-gui/1.0-r0/temp --repofrompath=oe-repo,/home/safetyn/safetynYoctoGenerator/warrior/var-fsl-yocto/build_xwayland/tmp/work/imx8mq_var_dart-poky-linux/fsl-image-gui/1.0-r0/oe-rootfs-repo --nogpgcheck install packagegroup-core-tools-profile packagegroup-fsl-tools-audio packagegroup-core-ssh-dropbear tree rpm packagegroup-fsl-tools-benchmark boost gstreamer1.0 packagegroup-fsl-tools-gpu packagegroup-fsl-gstreamer1.0 psplash gpsd packagegroup-base-extended collectd kernel-image-4.19.35-imx8mq+gdc7a2fd packagegroup-core-tools-testapps packagegroup-core-boot tcf-agent packagegroup-fsl-tools-gpu-external packagegroup-core-full-cmdline packagegroup-tools-bluetooth packagegroup-fsl-tools-testapps opencv fftw libsdl-1.2-0 packagegroup-fsl-gstreamer1.0-full lftp packagegroup-core-tools-debug libgpiod2 dnf weston-init run-postinsts mosquitto packagegroup-core-nfs-server sshfs-fuse spitools kernel-devicetree android-tools htop poco tmux openssh-sftp-server weston-xwayland xterm locale-base-en-us locale-base-en-gb' returned 1:
DNF version: 4.1.0
cachedir: /home/safetyn/safetynYoctoGenerator/warrior/var-fsl-yocto/build_xwayland/tmp/work/imx8mq_var_dart-poky-linux/fsl-image-gui/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/safetyn/safetynYoctoGenerator/warrior/var-fsl-yocto/build_xwayland/tmp/work/imx8mq_var_dart-poky-linux/fsl-image-gui/1.0-r0/oe-rootfs-repo
repo: using cache for: oe-repo
not found other for:
not found modules for:
not found deltainfo for:
not found updateinfo for:
oe-repo: using metadata from Wed 28 Oct 2020 09:16:57 AM UTC.
Last metadata expiration check: 0:00:01 ago on Wed 28 Oct 2020 09:16:57 AM UTC.
No module defaults found
No match for argument: fftw
Error: Unable to find a match
ERROR: fsl-image-gui-1.0-r0 do_rootfs:
ERROR: fsl-image-gui-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/safetyn/safetynYoctoGenerator/warrior/var-fsl-yocto/build_xwayland/tmp/work/imx8mq_var_dart-poky-linux/fsl-image-gui/1.0-r0/temp/log.do_rootfs.2614
ERROR: Task (/home/safetyn/safetynYoctoGenerator/warrior/var-fsl-yocto/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-gui.bb:do_rootfs) failed with exit code '1'
Woud you have any clue where this error come from ?
Thanks,
Paul
Edit :
Found a way to make it compile for those who are intereseted. (inspired by Yocto build for a static library fails with error "No Match Found")
I edited my *.bb file and added ALLOW_EMPTY_${PN} = "1"
I am not sure I got it completely but it looks like dnf package manager needs folders created for all added packages even if empty.
https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#var-ALLOW_EMPTY
The fftw recipe is set up to create a few different packages (RPM) like libfftw, libfftwl, libfftwf, fftw-wisdom, fftwl-wisdom, fftwf-wisdom, and fftw-wisdom-to-conf.
You probably want to add one or more of those. It seems there is no actual fftw package.
It is important to remember that IMAGE_INSTALL and RDEPEND lists items from the package namespace, while DEPENDS lists items from the recipe namespace.
If you are unsure about which package you want to install you can inspect the packages-split folder for fftw in tmp/work to see which files are included in which package.

binutils not able to find isl

yes this question has been asked before. no the other answers doesn't solve my problem.
I have just built isl from source both 0.15 and 0.22.
I have isl and I know where it is and I am amazed that even though I have pointed to where the program is in configure binutils can't find it.
It did work a few months ago to do it this way.
../gitrepos/binutils/configure --prefix=/tools --with-sysroot=x86_64-w64-cygwin --with-lib-path=/tools/lib --disable-nls --disable-werror lt_cv_objdir=.libs --target=x86_64-w64-cygwin --with-isl=/home/brazg/usr/isl/0.22
I am getting the following error: required isl version is 0.15 or
later configure: error: Unable to find a usable isl. See config.log
for details.
/tmp/cc3B0zAy.s: Assembler messages:
/tmp/cc3B0zAy.s:14: Error: unknown .loc sub-directive `view'
/tmp/cc3B0zAy.s:14: Error: junk at end of line, first unrecognized character is `-'
/tmp/cc3B0zAy.s:20: Error: unknown .loc sub-directive `view'
/tmp/cc3B0zAy.s:20: Error: unknown pseudo-op: `.lvu1'
/tmp/cc3B0zAy.s:23: Error: unknown .loc sub-directive `view'
/tmp/cc3B0zAy.s:23: Error: unknown pseudo-op: `.lvu2'
configure:5079: $? = 1
configure: failed program was:
Yes I am aware that there are a whole lot of assembler errors because of the version of GCC in Cygwin. I am trying to replace it by building a more current version of gcc.
This is a common problem I have been running into. when building some source code in Cygwin. It seems one of the programs that runs into this is binutils...
I'm not sure what to do.
and yes, I could try cross compiling in Linux, no I don't want to and I'm hoping I don't have to. I'd like to do this naively to Windows if I can.
It seems to me that you are complicating yourself the life (x86_64-pc-cygwin is platform specific, not your choice) and you should start using the standard cygport tool, the same configuration already used for the binutils cygwin package and the isl 0.16.1 available. When you have problem with configure the proper config.log will provide the hint on what is going wrong.
Herebelow the a recipe to build the last released binutils 2.33.1 and create a cygwin package. For my test I am using the stable packages:
$ cygcheck -cd binutils gcc-core libisl-devel
Cygwin Package Information
Package Version
binutils 2.31.1-1
gcc-core 7.4.0-1
libisl-devel 0.16.1-1
but you can also try with the test 8.3.0-1 gcc compiler.
Download the source package and extract the binutils.cygport
$ wget http://mirrors.kernel.org/sourceware/cygwin/x86/release/binutils/binutils-2.31.1-1-src.tar.xz
$ tar -xf binutils-2.31.1-1-src.tar.xz
$ cp binutils-2.31.1-1.src/binutils.cygport .
Adjusting the cygport file to build from release 2.33.1 and not from git
$ cat binutils.cygport
TOOLCHAIN_TARGET="native"
# GIT_URI="git://sourceware.org/git/binutils-gdb.git"
# inherit toolchain git
# GIT_REV=be46fa23042ec88a7a42030476a301bf72a80e7e
# SRC_DIR=binutils-gdb
NAME="binutils"
VERSION=2.33.1
RELEASE=1
CATEGORY="Devel"
SUMMARY="GNU assembler, linker, and similar utilities"
DESCRIPTION="This directory contains various GNU compilers, assemblers, linkers,
debuggers, etc., plus their support routines, definitions, and documentation."
HOMEPAGE="http://www.gnu.org/software/binutils/"
case ${VERSION} in
*.*.[5-9][0-9])
SRC_URI="ftp://sourceware.org/pub/binutils/snapshots/binutils-${VERSION}.tar.bz2" ;;
*) SRC_URI="mirror://gnu/binutils/binutils-${VERSION}.tar.xz"
SRC_DIR=${PN}-${PV}
;;
esac
#PATCH_URI+=" 2.24.51-shared-libs.patch"
#2.24.51-ld-__dso_handle.patch
#PATCH_URI+="
#2.24.51-ld-__dso_handle.patch
#detect-rebasing-and-compute-an-address-bias.patch
#"
#PATCH_URI="e643cb45bf85fa5c8c49a89ff177de246af4212e.patch"
# gdb,etc.: https://sourceware.org/ml/binutils/2014-01/msg00341.html
# for shared libbfd/libopcodes, add:
# --enable-shared
CYGCONF_ARGS="
--enable-install-libiberty
--disable-gdb
--disable-libdecnumber
--disable-readline
--disable-sim
--enable-64-bit-bfd
"
# --enable-targets=i686-efi-pe,x86_64-efi-pe,ia64-efi-elf,x86_64-pc-cygwin,i686-pc-cygwin
src_install() {
cd ${B}
cyginstall
# for shared libbfd/libopcodes, add:
# APIs are unstable, do not allow linking against DLLs
# rm -f ${D}/usr/lib/*.dll.a
# sed -i -e '/^library_names=/d' ${D}/usr/lib/lib*.la
}
As you can note that I have NOT changed the arguments of binutils configuration. So now I can build the 2.33.1 package:
$ cygport binutils.cygport download
...
binutils-2.33.1.tar 100%[===================>] 20.50M 1.50MB/s in 15s
2020-01-04 17:07:52 (1.38 MB/s) - ‘binutils-2.33.1.tar.xz.tmp’ saved [21490848/21490848]
$ cygport binutils.cygport almostall
>>> Preparing binutils-2.33.1-1.x86_64
>>> Unpacking source binutils-2.33.1.tar.xz
>>> Preparing working source directory
...
>>> Creating source patches
0 files changed
>>> Creating source package
binutils-2.33.1-1.src/
binutils-2.33.1-1.src/binutils-2.33.1.tar.xz
binutils-2.33.1-1.src/binutils.cygport
>>> binutils requires: cygwin libgcc1
and you can also test the build:
$ cygport binutils.cygport check
=== binutils Summary ===
# of expected passes 136
# of unexpected failures 1
# of expected failures 1
# of unsupported tests 5
I notice an hang at the end of the test, but the check seems completed, co it could be to other factors that I will not investigate.

Error installing nokogiri: Failed to build gem native extension

I want to execute the following command
bundle install && rake install
but an error comes up and I try to figure out whats going on. I found that i need to install nokogiri. But when I try to install it an error comes up again. Any ideas? :/
sudo gem install nokogiri -v '1.8.5'
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.8.5/ext/nokogiri
/usr/bin/ruby2.5 -r ./siteconf20181210-12550-orku3c.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.3.0
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)2.5
--help
--clean
--use-system-libraries
--enable-static
--disable-static
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--enable-cross-build
--disable-cross-build
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.8.5/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.8.5 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.8.5/gem_make.out

Unbound module llvm

I have been working through the LLVM Kaleidoscope Tutorial for OCaml. On the third part of the tutorial, I have navigated to the example code in the folder
OCaml-Kaleidoscope\Chapter3
I am encountering an issue when compiling with
ocamlbuild toy.byte
on cygwin. This is the code given in the tutorial to compile.
The error I am getting is
''ocamlc.opt -c -o codegen.cmo codegen.ml
File "codegen.ml", line 5, characters 5-9:
Error: Unbound module Llvm
Exit code 2 while executing this command:
''ocamlc.opt -c -o codegen.cmo codegen.ml
I looked up some solutions to this issue. One solution I found was to use
ocamlbuild -use-ocamlfind toy.byte -package llvm
instead of
ocamlbuild toy.byte
However, when I tried that I received this error:
Failure: ocamlfind not found on path, but -no-ocamlfind not used.
To fix this I tried:
opam install ocamlfind
But ocamlfind is already installed.
Another solution I found was to use:
opam install llvm
This resulted in:
The following actions will be performed:
- install llvm 3.7
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[llvm: ./install.sh 3.7] Command started
[ERROR] The installation of llvm failed at "./install.sh 3.7 make
C:\\cygwin64\\home\\setup\\.opam\\system
C:\\cygwin64\\home\\setup\\.opam\\system\\lib".
[llvm: ocamlfind remove] Command started
#=== ERROR while installing llvm.3.7 ==========================================#
# opam-version 1.3.0~dev2 (d4f7e01216dbb44af4e7cc6539a1b0afa9be9d2c)
# os win32
# command bash -c ./install.sh 3.7 make C:/cygwin64/home/setup/.opa m/system C:/cygwin64/home/setup/.opam/system/lib
# path C:\cygwin64\home\setup\.opam\system\build\llvm.3.7
# exit-code 2
# env-file C:\cygwin64\home\setup\.opam\system\build\llvm.3.7\llvm-1 0768-58c514.env
# stdout-file C:\cygwin64\home\setup\.opam\system\build\llvm.3.7\llvm-1 0768-58c514.out
# stderr-file C:\cygwin64\home\setup\.opam\system\build\llvm.3.7\llvm-1 0768-58c514.err
### stdout ###
# [...]
# config.status: executing bindings/ocaml/Makefile.ocaml commands
# make: Entering directory '/home/setup/.opam/system/build/llvm.3.7/build/bindin gs'
# llvm[0]: Constructing LLVMBuild project information.
# make[1]: Entering directory '/home/setup/.opam/system/build/llvm.3.7/build/bin dings/ocaml'
# make[2]: Entering directory '/home/setup/.opam/system/build/llvm.3.7/build/bin dings/ocaml/llvm'
# llvm[2]: Compiling llvm_ocaml.c for Release+Asserts build
# /home/setup/.opam/system/build/llvm.3.7/Makefile.rules:1536: recipe for target '/home/setup/.opam/system/build/llvm.3.7/build/bindings/ocaml/llvm/Release+Asse rts/llvm_ocaml.o' failed
# make[2]: Leaving directory '/home/setup/.opam/system/build/llvm.3.7/build/bind ings/ocaml/llvm'
# /home/setup/.opam/system/build/llvm.3.7/Makefile.rules:880: recipe for target 'all' failed
# make[1]: Leaving directory '/home/setup/.opam/system/build/llvm.3.7/build/bind ings/ocaml'
# /home/setup/.opam/system/build/llvm.3.7/Makefile.rules:939: recipe for target 'ocaml/.makeall' failed
# make: Leaving directory '/home/setup/.opam/system/build/llvm.3.7/build/binding s'
### stderr ###
# [...]
# configure: WARNING: dlopen() not found - disabling plugin support
# configure: WARNING: mmap() of a fixed address required but not supported
# configure: WARNING: mmap() of files required but not found
# configure: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not inst alled. Tests will not run
# + make -C bindings all SYSTEM_LLVM_CONFIG=llvm-config
# gcc.exe: error: /home/setup/.opam/system/build/llvm.3.7/bindings/ocaml/llvm/ll vm_ocaml.c: No such file or directory
# gcc.exe: fatal error: no input files
# compilation terminated.
# /usr/bin/rm: cannot remove '/home/setup/.opam/system/build/llvm.3.7/build/bind ings/ocaml/llvm/Release+Asserts/llvm_ocaml.d.tmp': No such file or directory
# make[2]: *** [/home/setup/.opam/system/build/llvm.3.7/build/bindings/ocaml/llv m/Release+Asserts/llvm_ocaml.o] Error 1
# make[1]: *** [all] Error 1
# make: *** [ocaml/.makeall] Error 2
=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
- install llvm 3.7
No changes have been performed
=-=- llvm.3.7 troubleshooting -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=> This package relies on external (system) dependencies that may be missing.
`opam depext llvm.3.7' may help you find the correct installation for your
system.
I am using version 3.8.0 of llvm and version 4.02.3 of OCaml from this link.
Am I on the right track? What do I need to do to fix this?
As I have answered in your question LLVM tutorial OCaml Compilation Assembler Error, your best way is not to use Windows.
OPAM is now usable in Cygwin OCaml or even in MinGW OCaml (using Cygwin opam binary) but packages in the OPAM repository are not tested in these environments. Just avoid them unless you are experienced with OCaml program development in Windows.
If you stick to Windows, then check the build at C:\cygwin64\home\setup\.opam\system\build\llvm.3.7. There should be stdout and stderr log files which can help to understand what happend.

Installing Perl's WWW::Mechanize::Firefox on OpenSuSE 11.4 - resulting in some annoying errors

Running OpenSuSE 11.4 - and trying to install WWW::Mechanize::Firefox.
Well I guess that I am missing MAKE (which is obviously GNU make - isn't it?)
See the following...
cpan[1]> install WWW::Mechanize::Firefox
Going to read '/root/.cpan/Metadata'
Database was generated on Fri, 09 Dec 2011 00:28:36 GMT
Running install for module 'WWW::Mechanize::Firefox'
Running make for C/CO/CORION/WWW-Mechanize-Firefox-0.58.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/C/CO/CORION/WWW-Mechanize-Firefox-0.58.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/C/CO/CORION/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/C/CO/CORION/WWW-Mechanize-Firefox-0.58.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN.pm: Going to build C/CO/CORION/WWW-Mechanize-Firefox-0.58.tar.gz
(Re)Creating lib/WWW/Mechanize/Firefox/Examples.pm
Can't locate HTML/Selector/XPath.pm in #INC (#INC contains: /usr/lib/perl5/site_perl/5.12.3/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/i586-linux-thread-multi /usr/lib/perl5/5.12.3 . lib) at ./examples/../lib/WWW/Mechanize/Firefox.pm line 10.
BEGIN failed--compilation aborted at ./examples/../lib/WWW/Mechanize/Firefox.pm line 10.
Compilation failed in require at examples/gen_examples_pod.pl line 32.
Checking if your kit is complete...
Looks good
Warning: prerequisite HTML::Selector::XPath 0 not found.
Warning: prerequisite MozRepl::RemoteObject 0.27 not found.
Warning: prerequisite Object::Import 0 not found.
Warning: prerequisite Shell::Command 0 not found.
Warning: prerequisite Task::Weaken 0 not found.
Writing Makefile for WWW::Mechanize::Firefox
---- Unsatisfied dependencies detected during ----
---- CORION/WWW-Mechanize-Firefox-0.58.tar.gz ----
Task::Weaken [requires]
Object::Import [requires]
Shell::Command [requires]
MozRepl::RemoteObject [requires]
HTML::Selector::XPath [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'Task::Weaken'
Running make for A/AD/ADAMK/Task-Weaken-1.04.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/A/AD/ADAMK/Task-Weaken-1.04.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/A/AD/ADAMK/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/A/AD/ADAMK/Task-Weaken-1.04.tar.gz ok
CPAN.pm: Going to build A/AD/ADAMK/Task-Weaken-1.04.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Task::Weaken
Can't exec "make": Datei oder Verzeichnis nicht gefunden at /usr/lib/perl5/5.12.3/CPAN/Distribution.pm line 2026.
ADAMK/Task-Weaken-1.04.tar.gz
make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running install for module 'Object::Import'
Running make for A/AM/AMBRUS/Object-Import-1.002.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/A/AM/AMBRUS/Object-Import-1.002.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/A/AM/AMBRUS/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/A/AM/AMBRUS/Object-Import-1.002.tar.gz ok
CPAN.pm: Going to build A/AM/AMBRUS/Object-Import-1.002.tar.gz
Checking if your kit is complete...
Looks good
Warning: prerequisite MRO::Compat 0 not found.
Writing Makefile for Object::Import
---- Unsatisfied dependencies detected during ----
---- AMBRUS/Object-Import-1.002.tar.gz ----
MRO::Compat [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'MRO::Compat'
Running make for F/FL/FLORA/MRO-Compat-0.11.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/F/FL/FLORA/MRO-Compat-0.11.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/F/FL/FLORA/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/F/FL/FLORA/MRO-Compat-0.11.tar.gz ok
CPAN.pm: Going to build F/FL/FLORA/MRO-Compat-0.11.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for MRO::Compat
Can't exec "make": Datei oder Verzeichnis nicht gefunden at /usr/lib/perl5/5.12.3/CPAN/Distribution.pm line 2026.
FLORA/MRO-Compat-0.11.tar.gz
make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running make for A/AM/AMBRUS/Object-Import-1.002.tar.gz
Has already been unwrapped into directory /root/.cpan/build/Object-Import-1.002-0gvgp8
CPAN.pm: Going to build A/AM/AMBRUS/Object-Import-1.002.tar.gz
Warning: Prerequisite 'MRO::Compat => 0' for 'AMBRUS/Object-Import-1.002.tar.gz' failed when processing 'FLORA/MRO-Compat-0.11.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Can't exec "make": Datei oder Verzeichnis nicht gefunden at /usr/lib/perl5/5.12.3/CPAN/Distribution.pm line 2026.
AMBRUS/Object-Import-1.002.tar.gz
make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running install for module 'Shell::Command'
Running make for F/FL/FLORA/Shell-Command-0.06.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/F/FL/FLORA/Shell-Command-0.06.tar.gz
Checksum for /root/.cpan/sources/authors/id/F/FL/FLORA/Shell-Command-0.06.tar.gz ok
CPAN.pm: Going to build F/FL/FLORA/Shell-Command-0.06.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Shell::Command
Can't exec "make": Datei oder Verzeichnis nicht gefunden at /usr/lib/perl5/5.12.3/CPAN/Distribution.pm line 2026.
FLORA/Shell-Command-0.06.tar.gz
make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running install for module 'MozRepl::RemoteObject'
Running make for C/CO/CORION/MozRepl-RemoteObject-0.28.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/C/CO/CORION/MozRepl-RemoteObject-0.28.tar.gz
Checksum for /root/.cpan/sources/authors/id/C/CO/CORION/MozRepl-RemoteObject-0.28.tar.gz ok
CPAN.pm: Going to build C/CO/CORION/MozRepl-RemoteObject-0.28.tar.gz
Checking if your kit is complete...
Looks good
Warning: prerequisite IPC::Run 0 not found.
Warning: prerequisite JSON 2 not found.
Warning: prerequisite MozRepl 0.06 not found.
Warning: prerequisite Task::Weaken 0 not found.
Writing Makefile for MozRepl::RemoteObject
---- Unsatisfied dependencies detected during ----
---- CORION/MozRepl-RemoteObject-0.28.tar.gz ----
MozRepl [requires]
IPC::Run [requires]
Task::Weaken [requires]
JSON [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'MozRepl'
Running make for Z/ZI/ZIGOROU/MozRepl-0.06.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/Z/ZI/ZIGOROU/MozRepl-0.06.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/Z/ZI/ZIGOROU/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/Z/ZI/ZIGOROU/MozRepl-0.06.tar.gz ok
CPAN.pm: Going to build Z/ZI/ZIGOROU/MozRepl-0.06.tar.gz
*** Module::AutoInstall version 1.03
*** Checking for Perl dependencies...
[Core Features]
- Carp::Clan ...missing.
- Class::Accessor::Fast ...missing.
- Class::Data::Inheritable ...missing.
- Data::Dump ...missing.
- Data::JavaScript::Anon ...missing.
- File::Spec ...loaded. (3.3101)
- Module::Pluggable::Fast ...missing.
- Net::Telnet ...missing.
- Template ...missing.
- Template::Provider::FromDATA ...missing.
- Text::SimpleTable ...missing.
- UNIVERSAL::require ...missing.
- URI ...loaded. (1.58)
==> Auto-install the 11 mandatory module(s) from CPAN? [Y/n] y
*** Since we're running under CPANPLUS, I'll just let it take care
of the dependency's installation later.
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Warning: prerequisite Carp::Clan 0 not found.
Warning: prerequisite Class::Accessor::Fast 0 not found.
Warning: prerequisite Class::Data::Inheritable 0 not found.
Warning: prerequisite Data::Dump 0 not found.
Warning: prerequisite Data::JavaScript::Anon 0 not found.
Warning: prerequisite Module::Pluggable::Fast 0 not found.
Warning: prerequisite Net::Telnet 0 not found.
Warning: prerequisite Template 0 not found.
Warning: prerequisite Template::Provider::FromDATA 0 not found.
Warning: prerequisite Text::SimpleTable 0 not found.
Warning: prerequisite UNIVERSAL::require 0 not found.
Writing Makefile for MozRepl
---- Unsatisfied dependencies detected during ----
---- ZIGOROU/MozRepl-0.06.tar.gz ----
Module::Pluggable::Fast [requires]
Template::Provider::FromDATA [requires]
Class::Accessor::Fast [requires]
Data::Dump [requires]
Class::Data::Inheritable [requires]
Text::SimpleTable [requires]
Template [requires]
Carp::Clan [requires]
Data::JavaScript::Anon [requires]
Net::Telnet [requires]
UNIVERSAL::require [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'Module::Pluggable::Fast'
Running make for M/MR/MRAMBERG/Module-Pluggable-Fast-0.19.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/M/MR/MRAMBERG/Module-Pluggable-Fast-0.19.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/M/MR/MRAMBERG/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/M/MR/MRAMBERG/Module-Pluggable-Fast-0.19.tar.gz ok
CPAN.pm: Going to build M/MR/MRAMBERG/Module-Pluggable-Fast-0.19.tar.gz
Checking if your kit is complete...
Looks good
Warning: prerequisite UNIVERSAL::require 0 not found.
Writing Makefile for Module::Pluggable::Fast
---- Unsatisfied dependencies detected during ----
---- MRAMBERG/Module-Pluggable-Fast-0.19.tar.gz ----
UNIVERSAL::require [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'UNIVERSAL::require'
Running make for M/MS/MSCHWERN/UNIVERSAL-require-0.13.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/M/MS/MSCHWERN/UNIVERSAL-require-0.13.tar.gz
Checksum for /root/.cpan/sources/authors/id/M/MS/MSCHWERN/UNIVERSAL-require-0.13.tar.gz ok
CPAN.pm: Going to build M/MS/MSCHWERN/UNIVERSAL-require-0.13.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for UNIVERSAL::require
Can't exec "make": Datei oder Verzeichnis nicht gefunden at /usr/lib/perl5/5.12.3/CPAN/Distribution.pm line 2026.
MSCHWERN/UNIVERSAL-require-0.13.tar.gz
make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running make for M/MR/MRAMBERG/Module-Pluggable-Fast-0.19.tar.gz
Has already been unwrapped into directory /root/.cpan/build/Module-Pluggable-Fast-0.19-iMlazZ
CPAN.pm: Going to build M/MR/MRAMBERG/Module-Pluggable-Fast-0.19.tar.gz
Warning: Prerequisite 'UNIVERSAL::require => 0' for 'MRAMBERG/Module-Pluggable-Fast-0.19.tar.gz' failed when processing 'MSCHWERN/UNIVERSAL-require-0.13.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Can't exec "make": Datei oder Verzeichnis nicht gefunden at /usr/lib/perl5/5.12.3/CPAN/Distribution.pm line 2026.
MRAMBERG/Module-Pluggable-Fast-0.19.tar.gz
make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running install for module 'Template::Provider::FromDATA'
Running make for B/BR/BRICAS/Template-Provider-FromDATA-0.12.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/B/BR/BRICAS/Template-Provider-FromDATA-0.12.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/B/BR/BRICAS/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/B/BR/BRICAS/Template-Provider-FromDATA-0.12.tar.gz ok
---- Unsatisfied dependencies detected during ----
---- BRICAS/Template-Provider-FromDATA-0.12.tar.gz ----
ExtUtils::MakeMaker [build_requires]
Running make test
Make had some problems, won't test
Delayed until after prerequisites
Running make install
Make had some problems, won't install
Delayed until after prerequisites
Running install for module 'ExtUtils::MakeMaker'
Running make for M/MS/MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz
Fetching with LWP:
ftp://ftp.hosteurope.de/pub/CPAN/authors/id/M/MS/MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz
Checksum for /root/.cpan/sources/authors/id/M/MS/MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz ok
CPAN.pm: Going to build M/MS/MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz
Using included version of JSON::PP::Compat5006 (1.09) because it is not already installed.
Using included version of version (0.88) as it is newer than the installed version (0.82).
Using included version of ExtUtils::Manifest (1.58) as it is newer than the installed version (1.57).
Using included version of Parse::CPAN::Meta (1.4401) as it is newer than the installed version (1.40).
Using included version of CPAN::Meta::YAML (0.003) because it is not already installed.
Using included version of JSON::PP (2.27104) because it is not already installed.
Using included version of CPAN::Meta (2.112150) because it is not already installed.
Using included version of File::Copy::Recursive (0.38) because it is not already installed.
Using included version of Version::Requirements (0.101020) because it is not already installed.
Checking if your kit is complete...
Looks good
Writing Makefile for ExtUtils::MakeMaker
Writing MYMETA.yml and MYMETA.json
Can't exec "make": Datei oder Verzeichnis nicht gefunden at /usr/lib/perl5/5.12.3/CPAN/Distribution.pm line 2026.
MSCHWERN/ExtUtils-MakeMaker-6.62.tar.gz
make -- NOT OK
Running make test
Can't test without successful make
Running make test
Any idea what I need to do to fix these problems?
update: many many thanks for the helpful answers; here some additional informations:
cpan[1]> o conf
$CPAN::Config options from '/usr/lib/perl5/5.12.3/CPAN/Config.pm':
commit [Commit changes to disk]
defaults [Reload defaults from disk]
help [Short help about 'o conf' usage]
init [Interactive setting of all options]
applypatch []
auto_commit [0]
build_cache [100]
build_dir [/root/.cpan/build]
build_dir_reuse [0]
build_requires_install_policy [yes]
bzip2 [/usr/bin/bzip2]
cache_metadata [1]
check_sigs [0]
colorize_debug undef
colorize_output [0]
colorize_print undef
colorize_warn undef
commandnumber_in_prompt [1]
commands_quote undef
connect_to_internet_ok [1]
cpan_home [/root/.cpan]
curl [/usr/bin/curl]
dontload_hash undef
dontload_list undef
ftp [/usr/bin/ftp]
ftp_passive [1]
ftp_proxy []
ftpstats_period undef
ftpstats_size undef
getcwd [cwd]
gpg [/usr/bin/gpg]
gzip [/usr/bin/gzip]
halt_on_failure [0]
histfile [/root/.cpan/histfile]
histsize [100]
http_proxy []
inactivity_timeout [0]
index_expire [1]
inhibit_startup_message [0]
keep_source_where [/root/.cpan/sources]
load_module_verbosity [none]
lynx []
make []
make_arg []
make_install_arg []
make_install_make_command []
makepl_arg []
mbuild_arg []
mbuild_install_arg []
mbuild_install_build_command [./Build]
mbuildpl_arg []
ncftp []
ncftpget []
no_proxy []
pager [less]
password undef
patch []
patches_dir undef
perl5lib_verbosity [none]
prefer_installer [MB]
prefs_dir [/root/.cpan/prefs]
prerequisites_policy [follow]
proxy_pass undef
proxy_user undef
randomize_urllist undef
scan_cache [atstart]
shell [/bin/bash]
show_unparsable_versions [0]
show_upload_date [0]
show_zero_versions [0]
tar [/bin/tar]
tar_verbosity [none]
term_is_latin [1]
term_ornaments [1]
test_report [0]
trust_test_report_history [0]
unzip [/usr/bin/unzip]
urllist
0 [ftp://ftp.hosteurope.de/pub/CPAN/]
1 [ftp://mirror.checkdomain.de/CPAN/]
2 [ftp://mirror.fraunhofer.de/CPAN/]
3 [ftp://ftp.u-tx.net/CPAN/]
4 [ftp://cpan.noris.de/pub/CPAN/]
use_sqlite [0]
username undef
version_timeout [15]
wait_list undef
wget [/usr/bin/wget]
yaml_load_code [0]
yaml_module [YAML]
look forward to hear from you again !! And ineeed - i cant wait to use mecha on this machine.
By the looks of it, you do indeed need to install GNU make on your machine. If any of those modules needs a C compiler, you'll need to install the C development system - which may be quite a number of packages.
The chances are that if you want to install an alternative make program, it will also work. The easiest one to find, though, will be GNU make.
One of the key items on your CPAN configuration is 'prerequisite_policy [follow]'; that is the most sensible choice. If a prerequisite module is missing, it will be installed automatically. Your trace shows this happening; some of the modules needed are missing, so it tries to install them before installing WWW::Mechanize::Firefox.
The problem is that it keeps failing to find 'make'. If you have not got 'make' installed, you need to install it. If you have it installed, you need it on your PATH. I do note that your config contains:
make []
make_arg []
make_install_arg []
make_install_make_command []
My CPAN configuration (actually on MacOS X 10.7.2, but I don't think that matters) includes:
make [/usr/bin/make]
make_arg []
make_install_arg [UNINST=1]
make_install_make_command [/usr/bin/make]
If you have make installed, set at least the two command names to the correct path (might be /usr/local/bin/make, perhaps, or /usr/bin/make). The UNINST=1 bit means that code will remove stuff that is no longer needed (because it is out of date) that is in a different directory than where it is about to install the new stuff. It is a bit arcane, but I've had it like that for a decade or more, AFAICR. (Mostly, these days, I use CPANPLUS rather than CPAN.)

Resources