Opened 12 years ago

Closed 12 years ago

#36752 closed defect (invalid)

expat: sed and expr commands not found

Reported by: tai.vegas@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: base Version: 2.1.2
Keywords: Cc:
Port: expat

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

sudo port install git-core +svn

--->  Computing dependencies for git-core
--->  Dependencies to be installed: bash-completion bash gettext expat libiconv gperf ncurses grep pcre bzip2 libedit zlib xz curl curl-ca-bundle perl5 perl5.12 gdbm libidn openssl pkgconfig p5.12-error p5.12-libwww-perl p5.12-encode-locale p5.12-file-listing p5.12-http-date p5.12-html-form p5.12-html-parser p5.12-html-tagset p5.12-http-message p5.12-lwp-mediatypes p5.12-uri p5.12-mime-base64 p5.12-http-cookies p5.12-http-daemon p5.12-http-negotiate p5.12-lwp-protocol-https p5.12-io-socket-ssl p5.12-net-libidn p5.12-net-ssleay p5.12-mozilla-ca p5.12-net-http p5.12-www-robotrules p5.12-svn-simple subversion-perlbindings-5.12 apr apr-util db46 sqlite3 cyrus-sasl2 kerberos5 neon serf1 subversion p5.12-term-readkey python27 python_select rsync popt
--->  Configuring expat
Error: org.macports.configure for port expat returned: configure failure: command execution failed
Error: Failed to install expat
Please see the log file for port expat for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log
Error: The following dependencies were not installed: bash-completion bash gettext expat libiconv gperf ncurses grep pcre bzip2 libedit zlib xz curl curl-ca-bundle perl5 perl5.12 gdbm libidn openssl pkgconfig p5.12-error p5.12-libwww-perl p5.12-encode-locale p5.12-file-listing p5.12-http-date p5.12-html-form p5.12-html-parser p5.12-html-tagset p5.12-http-message p5.12-lwp-mediatypes p5.12-uri p5.12-mime-base64 p5.12-http-cookies p5.12-http-daemon p5.12-http-negotiate p5.12-lwp-protocol-https p5.12-io-socket-ssl p5.12-net-libidn p5.12-net-ssleay p5.12-mozilla-ca p5.12-net-http p5.12-www-robotrules p5.12-svn-simple subversion-perlbindings-5.12 apr apr-util db46 sqlite3 cyrus-sasl2 kerberos5 neon serf1 subversion p5.12-term-readkey python27 python_select rsync popt
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port git-core failed

I'm running the command above trying to install git-core and I don't understand what the log is telling me.

log

version:1
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:main Executing org.macports.main (expat)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (expat)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (expat)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (expat)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (expat)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (expat)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Fri Oct 26 23:20:07 EDT 2012
:notice:configure --->  Configuring expat
:debug:configure Using compiler 'Mac OS X clang'
:debug:configure Executing org.macports.configure (expat)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.8' CXX='/usr/bin/clang++' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/clang' FCFLAGS='-pipe -O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/expat-2.1.0" && ./configure --prefix=/opt/local'
:debug:configure Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/expat-2.1.0" && ./configure --prefix=/opt/local 
:info:configure ./configure: line 416: sed: not found
:info:configure ./configure[442]: eval: line 2: expr: not found
:info:configure ./configure: line 445: sed: not found
:info:configure ./configure: line 449: sed: not found
:info:configure : error: cannot create .lineno; rerun with a POSIX shell
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/expat-2.1.0" && ./configure --prefix=/opt/local 
:info:configure Exit code: 1
:error:configure org.macports.configure for port expat returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for expat: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:error:configure Failed to install expat
:debug:configure couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:configure Please see the log file for port expat for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log

end log

Attachments (1)

main.log (3.6 KB) - added by tai.vegas@… 12 years ago.
log file

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by tai.vegas@…

Attachment: main.log added

log file

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

Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: expat added
Priority: HighNormal
Summary: trying to install git-core...nothing but errorsexpat: sed and expr commands not found

Please remember to use WikiFormatting when writing in Trac.

The log appears to be telling you that the sed and expr commands cannot be found. These are standard UNIX commands that are part of every OS X install; if they're missing on your system, other commands may be missing as well, and the simplest way to get them back would be to reinstall OS X.

comment:2 Changed 12 years ago by tai.vegas@…

I updated the macports.conf file to fix the path and it works now. Thanks

# PATH settings that are used for external tools (configure, make, etc.) while # installing ports. The default paths are given in the example; it need not be # uncommented. Customizing binpath is unsupported and is intended for # advanced users only. #binpath /opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin binpath /Developer/usr/bin:/bin/expr:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin

Version 0, edited 12 years ago by tai.vegas@… (next)

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

Resolution: invalid
Status: newclosed

The default binpath in macports.conf is correct and should not need adjusting.

/bin/expr is probably not a valid directory on your system and so should not be in the binpath.

Note: See TracTickets for help on using tickets.