[MacPorts] #13885: p5-xml-parser does not install in non-standard MacPorts prefix

MacPorts trac at macosforge.org
Wed Jan 9 15:06:56 PST 2008


#13885: p5-xml-parser does not install in non-standard MacPorts prefix
-------------------------------------+--------------------------------------
 Reporter:  ryandesign at macports.org  |       Owner:  ryandesign at macports.org
     Type:  defect                   |      Status:  new                    
 Priority:  Normal                   |   Milestone:  Port Bugs              
Component:  ports                    |     Version:  1.6.0                  
 Keywords:                           |  
-------------------------------------+--------------------------------------
 George Georgalis [http://lists.macosforge.org/pipermail/macports-
 users/2008-January/008100.html reported] on macports-users that when
 MacPorts is installed in a prefix other than /opt/local, p5-xml-parser
 does not install because it cannot find expat, and I can reproduce this
 problem:

 {{{
 $ PATH=/bin:/sbin:/usr/bin:/usr/sbin \
 ./configure \
 --enable-readline \
 --prefix=/tmp/macports \
 --with-tclpackage=/tmp/macports/share/macports/Tcl \
 --with-install-user=rschmidt \
 --with-install-group=rschmidt
 $ make
 $ make install
 $ sudo mv /opt/local /opt/local-off
 Password:
 }}}

 Note that moving an existing MacPorts installation in /opt/local aside is
 essential to this reproduction recipe. If you don't do so, and your
 existing install contains expat, the install in the other prefix will
 succeed.

 {{{
 $ rmdir /tmp/macports/var/macports/distfiles
 $ ln -s /opt/local-off/var/macports/distfiles
 /tmp/macports/var/macports/distfiles
 $ /tmp/macports/bin/port install p5-xml-parser
 --->  Fetching expat
 --->  Verifying checksum(s) for expat
 --->  Extracting expat
 --->  Configuring expat
 --->  Building expat with target all
 --->  Staging expat into destroot
 --->  Installing expat 2.0.1_0
 --->  Activating expat 2.0.1_0
 --->  Cleaning expat
 --->  Fetching perl5.8
 --->  Verifying checksum(s) for perl5.8
 --->  Extracting perl5.8
 --->  Applying patches to perl5.8
 --->  Configuring perl5.8
 --->  Building perl5.8 with target all
 --->  Staging perl5.8 into destroot
 --->  Installing perl5.8 5.8.8_0+darwin_8
 --->  Activating perl5.8 5.8.8_0+darwin_8
 --->  Cleaning perl5.8
 --->  Fetching p5-xml-parser
 --->  Verifying checksum(s) for p5-xml-parser
 --->  Extracting p5-xml-parser
 --->  Configuring p5-xml-parser
 Error: Target org.macports.configure returned: configure failure: shell
 command " cd
 "/tmp/macports/var/macports/build/_Users_rschmidt_macports_dports_perl_p5
 -xml-parser/work/XML-Parser-2.36" && /tmp/macports/bin/perl Makefile.PL
 INSTALLDIRS=vendor " returned error 2
 Command output: Note (probably harmless): No library found for -lexpat

 Expat must be installed prior to building XML::Parser and I can't find
 it in the standard library directories. You can download expat from:

 http://sourceforge.net/projects/expat/

 If expat is installed, but in a non-standard directory, then use the
 following options to Makefile.PL:

     EXPATLIBPATH=...  To set the directory in which to find libexpat

     EXPATINCPATH=...  To set the directory in which to find expat.h

 For example:

     perl Makefile.PL EXPATLIBPATH=/home/me/lib
 EXPATINCPATH=/home/me/include

 Note that if you build against a shareable library in a non-standard
 location
 you may (on some platforms) also have to set your LD_LIBRARY_PATH
 environment
 variable at run time for perl to find the library.


 Error: Status 1 encountered during processing.
 $
 }}}

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/13885>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list