port install zim fails, possibly on a perl error.

Derek Schutt derek.schutt at colostate.edu
Sat Jan 8 10:30:21 PST 2011


Thanks again for all of your help.   I'll try again and see if I can put 
forward the proper information:

To recap, "sudo port -v install zim fails".    Here is what the main.log 
says (apologies for the length, but I'm not really sure what is the most 
significant portion of the log):

$ sudo port -v install zim
Password:
--->  Computing dependencies for zim................................
--->  Dependencies to be installed: p5-file-basedir p5-file-desktopentry 
p5-file-mimeinfo p5-gtk2 p5-cairo p5-extutils-depends 
p5-extutils-pkgconfig p5-glib p5-pango p5-module-build 
p5-extutils-cbuilder p5-extutils-parsexs p5-yaml
--->  Configuring p5-file-basedir
This module requires Module::Build to install itself.
   Install Module::Build now from CPAN? [y] y
CPAN: Storable loaded ok (v2.19)
Going to read /Users/derek/.cpan/Metadata
   Database was generated on Thu, 30 Dec 2010 15:33:17 GMT
CPAN: Time::HiRes loaded ok (v1.9715)
   LWP not available

Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get
     http://www.perl.org/CPAN/authors/01mailrc.txt.gz
Going to read /Users/derek/.cpan/sources/authors/01mailrc.txt.gz
............................................................................DONE

Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get
     http://www.perl.org/CPAN/modules/02packages.details.txt.gz
Going to read /Users/derek/.cpan/sources/modules/02packages.details.txt.gz
   Database was generated on Sat, 08 Jan 2011 15:52:39 GMT
   HTTP::Date not available
...............
   New CPAN.pm version (v1.9402) available.
   [Currently running version is v1.9301]
   You might want to try
     install CPAN
     reload cpan
   to both upgrade CPAN.pm and run the new version without leaving
   the current session.


.............................................................DONE

Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get
     http://www.perl.org/CPAN/modules/03modlist.data.gz
Going to read /Users/derek/.cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Going to write /Users/derek/.cpan/Metadata
Running install for module 'Module::Build::Compat'
CPAN: Data::Dumper loaded ok (v2.121_17)
'YAML' not installed, falling back to Data::Dumper and Storable to read 
prefs '/Users/derek/.cpan/prefs'
Running make for D/DA/DAGOLDEN/Module-Build-0.3607.tar.gz

   CPAN: checksum security checks disabled because Digest::SHA not 
installed.
   Please consider installing the Digest::SHA module.

x Module-Build-0.3607
[snip] (many more of these follow)
[/snip]
x Module-Build-0.3607/scripts/config_data
CPAN: File::Temp loaded ok (v0.20)

   CPAN.pm: Going to build D/DA/DAGOLDEN/Module-Build-0.3607.tar.gz

# running Build.PL

Checking optional features...
YAML_support............disabled
   requires:
     ! YAML::Tiny is not installed
dist_authoring..........disabled
   requires:
     ! Archive::Tar is not installed
   recommends:
     * Module::Signature is not installed
     * Pod::Readme is not installed
inc_bundling_support....disabled
   requires:
     ! ExtUtils::Install (1.50_01) is installed, but we need version >= 1.54
     ! ExtUtils::Installed (1.43) is installed, but we need version >= 1.999
license_creation........disabled
   requires:
     ! Software::License 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 'Module-Build' version '0.3607'
Could not read 
'/Users/derek/.cpan/build/Module-Build-0.3607-2C1MTw/META.yml'. Falling 
back to other methods to determine prerequisites
/opt/local/bin/perl Build --makefile_env_macros 1
Building Module-Build
   DAGOLDEN/Module-Build-0.3607.tar.gz
   /usr/bin/make -- OK
Warning (usually harmless): 'YAML' not installed, will not store 
persistent state
Running make test
/opt/local/bin/perl Build --makefile_env_macros 1 test
t/00-compile.t ................. ok
t/PL_files.t ................... ok
t/actions/installdeps.t ........ ok
t/add_property.t ............... ok
t/basic.t ...................... ok
t/bundle_inc.t ................. skipped: $ENV{MB_TEST_EXPERIMENTAL} is 
not set
t/compat.t ..................... ok
t/compat/exit.t ................ ok
t/debug.t ...................... ok
t/destinations.t ............... ok
t/ext.t ........................ ok
t/extend.t ..................... ok
t/files.t ...................... ok
t/help.t ....................... ok
t/install.t .................... ok
t/install_extra_target.t ....... ok
t/manifypods.t ................. ok
t/metadata.t ................... ok
t/metadata2.t .................. ok
t/moduleinfo.t ................. ok
t/mymeta.t ..................... ok
t/new_from_context.t ........... ok
t/notes.t ...................... ok
t/par.t ........................ skipped: PAR::Dist 0.17 or up not 
installed to check .par's.
t/parents.t .................... ok
t/perl_mb_opt.t ................ ok
t/pod_parser.t ................. ok
t/ppm.t ........................ skipped: Archive::Tar not installed to 
read archives.
t/properties/module_name.t ..... ok
t/properties/needs_compiler.t .. ok
t/properties/share_dir.t ....... ok
t/resume.t ..................... ok
t/runthrough.t ................. ok
t/sample.t ..................... ok
t/script_dist.t ................ ok
t/signature.t .................. skipped: $ENV{TEST_SIGNATURE} is not set
t/test_file_exts.t ............. ok
t/test_type.t .................. ok
t/test_types.t ................. ok
t/tilde.t ...................... ok
t/use_tap_harness.t ............ ok
t/versions.t ................... ok
t/write_default_maniskip.t ..... ok
ld: warning: in /tmp/compilet-2144345618.o, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in lib/Simple.o, file was built for unsupported file format 
which is not the architecture being linked (i386)
Can't find 'boot_Simple' symbol in 
/private/tmp/MB-NtdkQ4LN/Simple/blib/arch/auto/Simple/Simple.bundle
  at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.

#   Failed test at t/xs.t line 49.
Can't find 'boot_Simple' symbol in 
/private/tmp/MB-NtdkQ4LN/Simple/blib/arch/auto/Simple/Simple.bundle
  at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.

#   Failed test at t/xs.t line 53.
#                   ''
#     doesn't match '(?-xism:ok$)'
Can't find 'boot_Simple' symbol in 
/private/tmp/MB-NtdkQ4LN/Simple/blib/arch/auto/Simple/Simple.bundle
  at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.

#   Failed test at t/xs.t line 57.
#                   ''
#     doesn't match '(?-xism:0.01$)'
Can't find 'boot_Simple' symbol in 
/private/tmp/MB-NtdkQ4LN/Simple/blib/arch/auto/Simple/Simple.bundle
  at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.

#   Failed test at t/xs.t line 61.
#                   ''
#     doesn't match '(?-xism:0.01$)'
ld: warning: in lib/Simple.o, file was built for unsupported file format 
which is not the architecture being linked (i386)
ld: warning: in lib/Simple.o, file was built for unsupported file format 
which is not the architecture being linked (i386)
ld: warning: in /tmp/compilet-159590217.o, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in lib/Simple/With/Deep/Name.o, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in /tmp/compilet-517186430.o, file was built for 
unsupported file format which is not the architecture being linked (i386)
ld: warning: in lib/Simple.o, file was built for unsupported file format 
which is not the architecture being linked (i386)
Can't find 'boot_Simple' symbol in 
/private/tmp/MB-NtdkQ4LN/Dist-Name/blib/arch/auto/Simple/Simple.bundle
  at t/basic.t line 4
Compilation failed in require at t/basic.t line 4.
BEGIN failed--compilation aborted at t/basic.t line 4.
# Looks like your test died before it could output anything.
# Looks like you failed 4 tests of 20.
t/xs.t .........................
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/20 subtests

Test Summary Report
-------------------
t/xs.t                       (Wstat: 1024 Tests: 20 Failed: 4)
   Failed tests:  3-6
   Non-zero exit status: 4
Files=44, Tests=1149, 55 wallclock secs ( 0.32 usr  0.15 sys + 33.06 
cusr  9.75 csys = 43.28 CPU)
Result: FAIL
Failed 1/44 test programs. 4/1149 subtests failed.
make: *** [test] Error 4
   DAGOLDEN/Module-Build-0.3607.tar.gz
   /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
   reports DAGOLDEN/Module-Build-0.3607.tar.gz
Warning (usually harmless): 'YAML' not installed, will not store 
persistent state
Running make install
   make test had returned bad status, won't install without force
Couldn't install Module::Build, giving up.
shell command " cd 
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-file-basedir/work/File-BaseDir-0.03" 
&& /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor " returned error 2
Error: Target org.macports.configure returned: configure failure: shell 
command failed (see log for details)
Warning: the following items did not execute (for p5-file-basedir): 
org.macports.activate org.macports.configure org.macports.build 
org.macports.destroot org.macports.install
Error: Failed to install p5-file-basedir
Log for p5-file-basedir is at: 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-file-basedir/main.log
Error: The following dependencies were not installed: p5-file-basedir 
p5-file-desktopentry p5-file-mimeinfo p5-gtk2 p5-cairo 
p5-extutils-depends p5-extutils-pkgconfig p5-glib p5-pango 
p5-module-build p5-extutils-cbuilder p5-extutils-parsexs p5-yaml
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
dereks-macbook-pro:~ derek$ edit 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-file-basedir/main.log
-bash: edit: command not found
dereks-macbook-pro:~ derek$ cp 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-file-basedir/main.log 
~/Desktop/zim_main.log
dereks-macbook-pro:~ derek$ cd ~/Desktop
dereks-macbook-pro:Desktop derek$ vi zim_main.log

:info:configure Can't find 'boot_Simple' symbol in 
/private/tmp/MB-NtdkQ4LN/Dist-Name/blib/arch/auto/Simple/Simple.bundle
:info:configure  at t/basic.t line 4
:info:configure Compilation failed in require at t/basic.t line 4.
:info:configure BEGIN failed--compilation aborted at t/basic.t line 4.
:info:configure # Looks like your test died before it could output anything.
:info:configure # Looks like you failed 4 tests of 20.
:info:configure t/xs.t .........................
:info:configure Dubious, test returned 4 (wstat 1024, 0x400)
:info:configure Failed 4/20 subtests
:info:configure
:info:configure Test Summary Report
:info:configure -------------------
:info:configure t/xs.t                       (Wstat: 1024 Tests: 20 
Failed: 4)
:info:configure   Failed tests:  3-6
:info:configure   Non-zero exit status: 4
:info:configure Files=44, Tests=1149, 55 wallclock secs ( 0.32 usr  0.15 
sys + 33.06 cusr  9.75 csys = 43.28 CPU)
:info:configure Result: FAIL
:info:configure Failed 1/44 test programs. 4/1149 subtests failed.
:info:configure make: *** [test] Error 4
:info:configure   DAGOLDEN/Module-Build-0.3607.tar.gz
:info:configure   /usr/bin/make test -- NOT OK
:info:configure //hint// to see the cpan-testers results for installing 
this module, try:
:info:configure   reports DAGOLDEN/Module-Build-0.3607.tar.gz
:info:configure Warning (usually harmless): 'YAML' not installed, will 
not store persistent state
:info:configure Running make install
:info:configure   make test had returned bad status, won't install 
without force
:info:configure Couldn't install Module::Build, giving up.
:info:configure shell command " cd 
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-file-basedir/work/File-BaseDir-0.03" 
&& /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor " returned error 2
:error:configure Target org.macports.configure returned: configure 
failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see 
log for details)
     while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for 
p5-file-basedir): org.macports.activate org.macports.configure 
org.macports.build org.macports.destroot org.macports.install
:error:configure Failed to install p5-file-basedir
:notice:configure Log for p5-file-basedir is at: 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-file-basedir/main.log


On 1/2/11 9:38 PM, Ryan Schmidt wrote:
> On Jan 2, 2011, at 17:39, Derek Schutt wrote:
>> On 1/1/2011 5:43 PM, Ryan Schmidt wrote:
>>> On Dec 30, 2010, at 10:31, Derek Schutt wrot
>>>> Error: Failed to install p5-file-basedir
>>>> Log for p5-file-basedir is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-file-basedir/main.log
>>>>
>>>
>>> We would need to see what is in the above-mentioned main.log file to know what went wrong here. I don't see any tickets filed for p5-file-basedir in the issue tracker.
>>>
>> Sorry, I wasn't clear.   The salient portion of the main.log file is below.
> You pasted part of the log for help2man, so I could refer you to the existing ticket about help2man build problems. But above we're talking about a problem building p5-file-basedir, so I would need to see the p5-file-basedir main.log file to know what went wrong there.
>
>
>>> help2man is for some reason extremely problematic to install. See this latest ticket:
>>>
>>> https://trac.macports.org/ticket/27457
>> For what it's worth, one of the posters to the bug tracking page reported that for help2man:
>> The problem was that perl's Locale::gettext was not properly installed. Attempting to install it through ports or cpan also failed, complaining of a missing libintl, or being unable to find the gettext libs.
>>
>> I was able to install Locale::gettext by obtaining the source, and running
>>
>> CC='cc -I/opt/local/include -L/opt/local/lib ' perl Makefile.PL
>>
>> before 'make&&  make install'
>>
>> After Locale::gettext was installed, I was able to install help2man through ports.
> Yes, I read that note... I don't know how to apply that information to fix the portfile. Or rather, at the moment, help2man is building fine for me, so since I don't know how to make it fail to install, it's hard for me to test any potential fixes. I could suggest some portfile patches that you could try, to see if they resolve the help2man build error for you.
>
>> For me finding and installing the source code for a perl library seems more trouble than it is worth.
> Certainly; we don't intend to have you install perl libraries or anything else manually in order to use MacPorts; in fact we specifically recommend not doing that. But it's interesting to know that even for users where the port fails to build for whatever reason, it can build successfully manually. This suggests that a fix is possible, we just don't know it yet.
>
>> I'm starting to  think if I want linux-y type things like GNU software, my best best may be just to install a linux distro in a virtual machine.   I'm digressing off topic here, but just the fact that I have to register as an Apple Developer and give them all sorts of personal information to get Xcode makes me think trying to use the *nix tools with which I am familiar is going to be a pain.   I was hoping I could have the best of both worlds with my Mac, but I'm starting to be pessimistic.    I hope someone will tell me I'm wrong though!
> MacPorts is a great way to install UNIXy software on Mac OS X. Mac OS X is a fully POSIX-compliant BSD-based UNIX operating system so it's not so hard to do. Usually there's just a few configure arguments or environment variables needed, and that's the kind of knowledge that's encoded into MacPorts portfile so that you don't have to research it and try it out yourself.
>
> I'm sorry you find Apple's requirements for downloading Xcode inconvenient; you should provide that feedback to Apple, since it's not something we have any control over. If you'd rather not provide that information to Apple, you could also find a copy of Xcode on your Mac OS X DVD, though it's probably outdated.
>
> Certainly, if you like, you could also install Linux or another operating system on your Mac, either replacing Mac OS X, or on a separate partition or hard disk, or in a VM like you said.
>
>


-- 
--------------------
Derek Schutt
Assistant Professor
Departpment of Geosciences
309 Natural Resources Building
Campus Delivery 1482
Fort Collins, CO 80525-1482
http://warnercnr.colostate.edu/~schutt/CSU_web/index.htm
970-491-5786



More information about the macports-users mailing list