Opened 13 years ago

Closed 12 years ago

#29696 closed defect (worksforme)

flex: no such file or directory

Reported by: matthew.wilce@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: flex

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When I try port install wine, the installation falls with: (NB: Macports was installed with --with-install-user=`id -un` --with-install-group=`id -gn`)

port install wine
--->  Computing dependencies for wine
--->  Dependencies to be installed: flex fontconfig freetype zlib libiconv gperf gnutls libgcrypt libgpg-error gettext ncurses ncursesw libtasn1 lzo2 pkgconfig readline jpeg lcms tiff libpng libxml2 libxslt mesa makedepend xorg-xproto tcl xorg-dri2proto xorg-glproto xorg-libXfixes xorg-fixesproto xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-libXdmcp xorg-libxcb python27 bzip2 db46 gdbm openssl python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-libXi xorg-libXext xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libXcomposite xorg-compositeproto xorg-libXcursor xorg-renderproto xrender xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto xorg-libXxf86vm xorg-xf86vidmodeproto
--->  Configuring flex
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Error: Failed to install flex
Log for flex is at: /home/mattwilce/macports/var/macports/logs/_home_mattwilce_macports_var_macports_sources_rsync.macports.org_release_ports_devel_flex/main.log

Logfile :

version:1
:debug:main Executing org.macports.main (flex)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (flex)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (flex)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main setting option extract.cmd to /home/mattwilce/sw/bin/bzip2
:debug:main Skipping completed org.macports.extract (flex)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (flex)
:debug:main Privilege de-escalation not attempted as not running as root.
:msg:main --->  Configuring flex
:debug:main Using compiler 'Mac OS X gcc 4.0'
:debug:configure configure phase started at Fri Jun  3 20:12:21 EST 2011
:debug:configure Executing org.macports.configure (flex)
:debug:configure Environment: CPATH='/home/mattwilce/macports/include' CFLAGS='-pipe -O2 -arch i386' 
CPPFLAGS='-I/home/mattwilce/macports/include' CXXFLAGS='-pipe -O2 -arch i386' LIBRARY_PATH='/home/mat
twilce/macports/lib' MACOSX_DEPLOYMENT_TARGET='10.5' CXX='/usr/bin/g++-4.0' CC_PRINT_OPTIONS_FILE='/h
ome/mattwilce/macports/var/macports/build/_home_mattwilce_macports_var_macports_sources_rsync.macport
s.org_release_ports_devel_flex/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m32' LDFLAGS='-L/home/mat
twilce/macports/lib -arch i386' OBJC='/usr/bin/gcc-4.0' FCFLAGS='-pipe -O2 -m32' INSTALL='/usr/bin/in
stall -c' OBJCFLAGS='-pipe -O2 -arch i386' FFLAGS='-pipe -O2 -m32' CC_PRINT_OPTIONS='YES' CC='/usr/bi
n/gcc-4.0'
:debug:configure Assembled command: 'cd "/home/mattwilce/macports/var/macports/build/_home_mattwilce_
macports_var_macports_sources_rsync.macports.org_release_ports_devel_flex/work/flex-2.5.35" && ./conf
igure --prefix=/home/mattwilce/macports --infodir=/home/mattwilce/macports/share/info --mandir=/home/
mattwilce/macports/share/man'
:info:configure sh: line 0: cd: /home/mattwilce/macports/var/macports/build/_home_mattwilce_macports_
var_macports_sources_rsync.macports.org_release_ports_devel_flex/work/flex-2.5.35: No such file or di
rectory
:info:configure shell command " cd "/home/mattwilce/macports/var/macports/build/_home_mattwilce_macpo
rts_var_macports_sources_rsync.macports.org_release_ports_devel_flex/work/flex-2.5.35" && ./configure
 --prefix=/home/mattwilce/macports --infodir=/home/mattwilce/macports/share/info --mandir=/home/mattw
ilce/macports/share/man " returned error 1
: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 flex): org.macports.activate org.ma
cports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for flex is at: /home/mattwilce/macports/var/macports/logs/_home_mattwilce_macp
orts_var_macports_sources_rsync.macports.org_release_ports_devel_flex/main.log

Change History (6)

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

Description: modified (diff)
Port: flex added
Summary: Problem installing wine/flex osx 10.5flex: no such file or directory

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

Please clean and try again, and selfupdate beforehand too:

sudo port selfupdate
sudo port clean flex
sudo port install flex

These should be the first steps you try anytime a port install fails.

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to mww@…

Please remember to cc the maintainer.

comment:4 Changed 13 years ago by matthew.wilce@…

Thank you for the suggestion. I did try port selfupdate, clean and install flex - but to no avail. Indeed it appears I cannot install anything and always get an error message reporting that a directory could not be found not matter what I try to install. I have only just installed Macports and installed it with --with-install-user=`id -un` --with-install-group=`id -gn` could this be causing the problem. I do not have root or sudo rights. Also completely removed Macports and then reinstalled but nothing changed.

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

Cc: ryandesign@… added
Description: modified (diff)

Please clean any affected port and try again, then attach its main.log to this ticket so we can see exactly what happened. (The output pasted into the ticket above is not from a clean run; it has lines saying "Skipping completed"; we need to see the output of all phases, including those that were skipped above.)

If cleaning and trying again resolves it then I'd call this a duplicate of #29223 but if you get the same error about the missing source directory after cleaning, then I'd suspect a problem with your operating system's gzip, bzip2 or tar commands.

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

Resolution: worksforme
Status: newclosed

Presuming this is resolved by now.

Note: See TracTickets for help on using tickets.