Opened 13 years ago

Closed 13 years ago

#33539 closed defect (invalid)

pcre: libbz2 was not found

Reported by: renz@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: pcre

Description

sudo port install py25-scipy on Mac OS X 10.6.8 resulted this error:

Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for pcre is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_pcre/pcre/main.log
Error: Problem while installing pcre
Error: Unable to execute port: upgrade swig-python failed

Attachments (2)

main.log (20.4 KB) - added by renz@… 13 years ago.
Log for pcre
config.log (54.4 KB) - added by renz@… 13 years ago.
.../pcre/work/pcre-8.12/config.log

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by renz@…

Attachment: main.log added

Log for pcre

comment:1 Changed 13 years ago by renz@…

I got the exact same message with py27-scipy.

comment:2 Changed 13 years ago by mf2k (Frank Schima)

Keywords: pcre swig libbz2 removed
Port: pcre added; py25-scipy removed

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Summary: py25-scipy configure failure: shell command failedpcre: libbz2 was not found

The error says:

:info:configure ** Cannot --enable-pcregrep-libbz2 because libbz2 was not found

This is curious since pcre does declare a dependency on the bzip2 port. Is the bzip2 port installed and active? What does "port -v installed bzip2" and "port contents bzip2" show?

comment:4 Changed 13 years ago by renz@…

% port -v installed bzip2
The following ports are currently installed:
  bzip2 @1.0.5_3+darwin
  bzip2 @1.0.6_0 platform='darwin 10' archs='x86_64'
  bzip2 @1.0.6_0+universal (active) platform='darwin 10' archs='i386 x86_64'
% port contents bzip2
Port bzip2 contains:
  /opt/local/bin/bunzip2
  /opt/local/bin/bzcat
  /opt/local/bin/bzcmp
  /opt/local/bin/bzdiff
  /opt/local/bin/bzegrep
  /opt/local/bin/bzfgrep
  /opt/local/bin/bzgrep
  /opt/local/bin/bzip2
  /opt/local/bin/bzip2recover
  /opt/local/bin/bzless
  /opt/local/bin/bzmore
  /opt/local/include/bzlib.h
  /opt/local/lib/libbz2.1.0.6.dylib
  /opt/local/lib/libbz2.1.0.dylib
  /opt/local/lib/libbz2.1.dylib
  /opt/local/lib/libbz2.a
  /opt/local/lib/libbz2.dylib
  /opt/local/share/man/man1/bzcmp.1.gz
  /opt/local/share/man/man1/bzdiff.1.gz
  /opt/local/share/man/man1/bzegrep.1.gz
  /opt/local/share/man/man1/bzfgrep.1.gz
  /opt/local/share/man/man1/bzgrep.1.gz
  /opt/local/share/man/man1/bzip2.1.gz
  /opt/local/share/man/man1/bzless.1.gz
  /opt/local/share/man/man1/bzmore.1.gz

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

That looks pretty normal. Could you also attach the config.log file, inside the directory identified by the command "port work pcre"?

Changed 13 years ago by renz@…

Attachment: config.log added

.../pcre/work/pcre-8.12/config.log

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, that provides the clue:

ld: warning: in /opt/local/lib/libbz2.dylib, file was built for unsupported file format which is not the architecture being linked (i386)

So, although MacPorts thinks, as shown in your "port -v installed bzip2" output above, that it installed bzip2 universal for i386 x86_64, it doesn't actually contain the i386 part. So rebuild bzip2.

sudo port -n upgrade --force bzip2

comment:7 Changed 13 years ago by renz@…

Thanks. This fixed the problem.

comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Great, glad you got it working.

Note: See TracTickets for help on using tickets.