Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
when trying to compile other source files, i get and error saying sed is not found. i downloaded and expanded sed-4.1.5 to and ran ./configure in the directory with the ...
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    5

    ./configure: line 1: sed: command not found

    when trying to compile other source files, i get and error saying sed is not found. i downloaded and expanded sed-4.1.5 to and ran ./configure in the directory with the expanded file. i get this error:

    ./configure: line 1: sed: command not found
    ./configure: line 1: sed: command not found
    ./configure: line 1: sed: command not found
    ./configure: line 2: sed: command not found
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... configure: error: ls -t appears to fail. Make sure there is not a broken
    alias in your environment
    configure: error: newly created file is older than distributed files!
    Check your system clock
    ./configure: line 22: sed: command not found
    ./configure: line 64: sed: command not found

    i really need to fix this, otherwise i can't compile anything. thanks.

  2. #2
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    ./configure doesn't actually install anything, it configures the options for compiling the software. Besides, you should be installing sed via your distribution's package manager, not from source.

  3. #3
    Banned CodeRoot's Avatar
    Join Date
    Sep 2005
    Posts
    567
    What does this command yield?:

    Code:
    which sed
    Can you post the first 2/22/64/75/100 lines of the configuration file?

  4. #4
    Just Joined!
    Join Date
    Apr 2007
    Posts
    5
    which sed yeilds:
    Code:
    no sed in /opt/local/bin /opt/local/sbin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/texbin /usr/local/bin /usr/X11R6/bin
    These a the first lines of the configuration file:

    Code:
    #! /bin/sh
    # Guess values for system-dependent variables and create Makefiles.
    # Generated by GNU Autoconf 2.59 for sed 4.1.5.
    #
    # Report bugs to <bonzini@gnu.org>.
    #
    # Copyright (C) 2003 Free Software Foundation, Inc.
    # This configure script is free software; the Free Software Foundation
    # gives unlimited permission to copy, distribute and modify it.
    ## --------------------- ##
    ## M4sh Initialization.  ##
    ## --------------------- ##
    
    # Be Bourne compatible
    if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
      emulate sh
      NULLCMD=:
      # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
      # is contrary to our usage.  Disable this feature.
      alias -g '${1+"$@"}'='"$@"'
    elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
      set -o posix
    fi
    DUALCASE=1; export DUALCASE # for MKS sh
    
    # Support unset when possible.
    if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
      as_unset=unset
    else
      as_unset=false
    fi
    
    
    # Work around bugs in pre-3.0 UWIN ksh.
    $as_unset ENV MAIL MAILPATH
    PS1='$ '
    PS2='> '
    PS4='+ '
    
    # NLS nuisances.
    for as_var in \
      LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
      LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
      LC_TELEPHONE LC_TIME
    do
      if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
        eval $as_var=C; export $as_var
      else
        $as_unset $as_var
      fi
    done
    
    # Required to use basename.
    if expr a : '\(a\)' >/dev/null 2>&1; then
      as_basename=basename
    else
      as_basename=false
    fi
    
    
    # Name of the executable.
    as_me=`$as_basename "$0" ||
    $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
             X"$0" : 'X\(//\)$' \| \
             X"$0" : 'X\(/\)$' \| \
             .     : '\(.\)' 2>/dev/null ||
    echo X/"$0" |
        sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
              /^X\/\(\/\/\)$/{ s//\1/; q; }
              /^X\/\(\/\).*/{ s//\1/; q; }
              s/.*/./; q'`
    The error, however, is ./configure: line 1: sed: command not found

  5. #5
    Banned CodeRoot's Avatar
    Join Date
    Sep 2005
    Posts
    567
    Please execute the following and post the results:

    Code:
    /bin/ls -ldH /bin /bin/sed /usr /usr/bin /usr/bin/sed

  6. #6
    Just Joined!
    Join Date
    Apr 2007
    Posts
    5
    Code:
    ls: /bin/sed: No such file or directory
    drwxr-xr-x    40 root  wheel   1360 Mar 15 13:55 /bin
    drwxr-xr-x    12 root  wheel    408 Apr 16 20:05 /usr
    drwxr-xr-x   739 root  wheel  25126 Apr 19 17:46 /usr/bin
    lrwxr-xr-x     1 root  wheel     29 Apr 16 21:00 /usr/bin/sed -> /Users/cabe/sed-4.1.5/sed/sed

  7. #7
    Banned CodeRoot's Avatar
    Join Date
    Sep 2005
    Posts
    567
    Please execute (as root) and post the results:

    Code:
    ls -ld `find /bin /lib /sbin /usr /users /Users -name sed`
    (My opinion: '/usr/bin/sed -> /Users/cabe/sed-4.1.5/sed/sed' looks "highly irregular" and should probably be fixed...)

  8. #8
    Just Joined!
    Join Date
    Apr 2007
    Posts
    5
    Code:
    find: /lib: No such file or directory
    drwxr-xr-x   11 cabe  cabe   374 Feb  3  2006 /Users/cabe/Sources/Open/sed-4.1.5/sed
    drwxr-xr-x   11 cabe  cabe   374 Feb  3  2006 /users/cabe/Sources/Open/sed-4.1.5/sed
    lrwxr-xr-x    1 root  wheel   29 Apr 16 21:00 /usr/bin/sed -> /Users/cabe/sed-4.1.5/sed/sed
    belbo:~ cabe$
    Code:
    Sources/Open/
    is where I have expanded files.

    "(My opinion: '/usr/bin/sed -> /Users/cabe/sed-4.1.5/sed/sed' looks "highly irregular" and should probably be fixed...)"

    How do I do this?

  9. #9
    Banned CodeRoot's Avatar
    Join Date
    Sep 2005
    Posts
    567
    It appears that you do not have a 'sed' executable , and your "expansion" of 'sed-4.1.5' looks like it is left wanting...

    (No '/lib' directory seems a bit strange, also...)

    I am guessing from the line 'checking for a BSD-compatible install...' in your first post that you have some flavor of BSD?

  10. #10
    Just Joined!
    Join Date
    Apr 2007
    Posts
    5
    I have Darwin on a Intel Mac

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...