/bin/sh: -q: command not found

Hi,
I'm trying to install modauthzldap on Leopard Server, and I get this when I run make install:
Making install in module
if /bin/sh ../libtool --mode=compile ` -q CC` -DHAVECONFIGH -I. -I. -I.. -I` -q INCLUDEDIR` -I/usr/local/openssl/include -DAUTHZLDAP_HAVESSL ` -q CFLAGS` ` -q CFLAGS_SHLIB` -I/usr/local/openldap-2.1.21/include -MT modauthz_ldapla-auth.lo -MD -MP -MF ".deps/modauthz_ldapla-auth.Tpo" \
-c -o modauthz_ldapla-auth.lo `test -f 'auth.c' || echo './'`auth.c; \
then mv -f ".deps/modauthz_ldapla-auth.Tpo" ".deps/modauthz_ldapla-auth.Plo"; \
else rm -f ".deps/modauthz_ldapla-auth.Tpo"; exit 1; \
fi
/bin/sh: -q: command not found
/bin/sh: -q: command not found
/bin/sh: -q: command not found
/bin/sh: -q: command not found
libtool: unrecognized option `-DHAVECONFIGH'
Try `libtool --help' for more information.
make[1]: * http://modauthz_ldapla-auth.lo Error 1
make: * install-recursive Error 1
Anyone know what that means? I've already installed openldap fine. OpenLDAP and modauthzldap are available here:
http://www.openldap.org/software/download/
http://authzldap.othello.ch/download.html

It looks like the configure script was botched. It wants to run the APXS apache program, but the APXS variable isn't defined. APXS, however, doesn't seem to be required by the configure script.
Sorry. I can tell you why it dies, but I can't do much about fixing it. If you really want it, you should install the apache APXS stuff. I think it is the apache developer kit.

Similar Messages

  • [SOLVED] /bin/bash: endif: command not found ERROR while saving in vim

    My .vimrc file
    set expandtab
    set number
    syntax on
    set autoindent shiftwidth=4
    set smartindent
    set tabstop=4
    set smartcase
    colorscheme elflord
    set incsearch
    set hlsearch
    au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/bin/" | silent !chmod +x <afile> | endif | endif
    " Tell vim to remember certain things when we exit
    " '10 : marks will be remembered for up to 10 previously edited files
    " "100 : will save up to 100 lines for each register
    " :20 : up to 20 lines of command-line history will be remembered
    " % : saves and restores the buffer list
    " n... : where to save the viminfo files
    set viminfo='10,\"100,:20,%,n~/.viminfo
    function! ResCur()
    if line("'\"") <= line("$")
    normal! g`"
    return 1
    endif
    endfunction
    augroup resCur
    autocmd!
    autocmd BufWinEnter * call ResCur()
    augroup END
    On some files, I get this error http://i.imgur.com/lKFvm.png at the bottom of vim . Please note that I get the error not on all files. Its driving me crazy!
    Last edited by shadyabhi (2011-09-11 02:41:52)

    Replace this:
    au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/bin/" | silent !chmod +x <afile> | endif | endif
    with this:
    au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/bin/" | silent execute "!chmod a+x <afile>" | endif | endif
    If the above doesn't work for you (though it should in Vim > 7), try a different way of doing the same thing:
    function ModeChange()
    if getline(1) =~ "^#!"
    if getline(1) =~ "/bin/"
    silent !chmod a+x <afile>
    endif
    endif
    endfunction
    au BufWritePost * call ModeChange()
    Last edited by bohoomil (2011-09-11 02:29:58)

  • 8.0.5 install fails ..." make: command not found ..."

    Hi there,
    I hope anyone can solve my installation problem.
    When running the installer to install Oracle 8.0.5 RDBMS the
    installer reports on "O/S error"
    Error during action 'creating rdms/lib/psoliblist'.
    Command: make -f ins_rdbms.mkb
    /oracle/oracle805/rdbms/lib/psoliblist
    sh: make: command not found
    I haven't been able to find an "make" command/file on my redhat
    6.0
    Is there on anyone else's redhat 6.0?
    Thanx 4 any replies.
    null

    I had this same thought and had made sure the make-7.77-6 was
    installed. I restarted linux (just incase) and attempted to
    install oracle once again. I am installing Oracle 8051 EE on RH
    60. Linux is running on a PII 300 with 128M. The error i
    recieve is listed below.
    I continue to recieve the same error as OTN usere "truncate1".
    Though i get a bit more text with the error this time around.
    <><><><><><><><><><><><><><><><><><><><><>
    error: make -f
    /oracle/oracle8051/network/lib/ins_network.mkntcontab.o
    (if [ "compile" = "compile" ] ;then \
    /oracle/oracle8051/bin/gennttab > ntcontab.c ;\
    cc -c ntcontab.c ;\
    rm -f /oracle/oracle8051/lib/ntcontab.o ;\
    mv ntcontab.o /oracle/oracle/lib ;fi)
    /bin/sh: cc: command not found
    mv: ntcontab.o No such file or directory
    make: ***[ntacontab.o] Error 1
    <><>><><><><><><><><><><><><><><><><><>
    Any thoughts?
    Thanks,
    dennis anthony.
    [email protected]
    Jan Gr0nlien (guest) wrote:
    : truncate1 (guest) wrote:
    : Hi,
    : my RH 6.0 has make installed in RPM "make-3.77-6".
    : That should do it for you to.
    : Regards Jan
    : : Hi there,
    : : I hope anyone can solve my installation problem.
    : : When running the installer to install Oracle 8.0.5 RDBMS the
    : : installer reports on "O/S error"
    : : Error during action 'creating rdms/lib/psoliblist'.
    : : Command: make -f ins_rdbms.mkb
    : : /oracle/oracle805/rdbms/lib/psoliblist
    : : sh: make: command not found
    : : I haven't been able to find an "make" command/file on my
    redhat
    : : 6.0
    : : Is there on anyone else's redhat 6.0?
    : : Thanx 4 any replies.
    null

  • Crontab "Desktop: command not found"

    This is my first attempt to use crontab. I have a working shell script, humassetsmonupload, in my /Users/Shared/ directory that when I run it without arguments, it does as expected.
    I've made my first edit in crontab by adding this line:
    */10 * * * * * /Users/Shared/humassetsmonupload
    According to my system mail messages, crontab is alerting me every ten minutes about it. But all messages say this:
    /bin/sh: Desktop: command not found
    The shebang matches it. The environment is correct it appears. But "Desktop" throws me. The shell script does not have this word in it. What am I overlooking?, sam

    1st, you have too many * in your "When to Run" section. There are ONLY 5 fields. You have 6.
    So that 6th field is actually treated as the first word of your command to execute. So you are trying to execute:
    * /Users/Shared/humassetsmonupload
    as your command. The * is going to list every file in your home directory, and if Desktop is the first name listed, then the shell is going to try and execute the command Desktop.
    2nd, another thing to keep in mind. You do not have your full set of environment variables when running via cron.
    It is useful to run a cron job that does a printenv
    */10 * * * * printenv >/tmp/cron.printenv
    after you have your list of cron available environment variables, you can remote the printenv entry.

  • Proc command not found in $oraclehome/bin

    In my AIX5L operation system i installed the oracle9.2 completely,then i find that the 'proc' command not found at $oraclehome/bin.
    Can you help me?

    Hi,
    Presuming you get the error message containing $ORACLE_HOME/bin and not $oraclehome/bin
    Make sure that the $ORACLE_HOME is set
    and that $ORACLE_HOME/bin is in the PATH
    You can use the script oraenv under ..../oracle/home/product/9.X.X/bin
    to set your env.
    . oraenv
    Good luck
    Shivjit Gill

  • Make: /usr/bin/ar: Command not found

    Dear Team,
    Following error are encountered while installing 11gR2 on RHEL 5.5.
    make file log:
    /usr/bin/make -f ins_rdbms.mk rat_on part_on dm_on olap_on sdo_on ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1//bin/sh: /usr/bin/ar: No such file or directory
    /usr/bin/ar cr /u01/app/oracle/product/11.2.0/db_1/rdbms/lib/libknlopt.a /u01/app/oracle/product/11.2.0/db_1/rdbms/lib/kecwr.o
    make: /usr/bin/ar: Command not found
    make: *** [rat_on] Error 127
    - All rpms requirements are met. I have re-install GCC as well.
    Thanks in Adv.
    Yuvraj

    # yum provides /usr/bin/ar
    Loaded plugins: security
    binutils-2.17.50.0.6-14.el5.x86_64 : A GNU collection of binary utilities.
    Repo        : el5_u5_base
    Matched from:
    Filename    : /usr/bin/ar
    # ll /usr/bin/ar
    -rwxr-xr-x 1 root root 52632 Feb 11  2010 /usr/bin/arCould your file system or system installation be damaged?
    Perhaps you can try the following:
    # touch /forcefsck
    reboot

  • Make: /usr/bin/install: Command not found

    I'm working on a PKGBUILD, but I'm running into this:
    make: /usr/bin/install: Command not found
    make: *** [install] Error 127
    ==> ERROR: Build Failed.
    Aborting...
    What would cause this?  Old code?  Missing package?

    It was actually really old code, after a bit of successful this-should-probably-work script editing!  I created a package in the AUR called dasm, which is an assembler for the Atari 2600 among many other systems.
    http://aur.archlinux.org/packages.php?ID=37200

  • /bin/sh: g++32: command not found

    Chanage:
    Migration EBS 11.5.10.2 from RHEL4.x x86-32bit to RHEL 5.3 x86-64bit (appsTier)
    $adrelink_mod.sh force=y "msc MSCCPP"
    /test/testclone/testap/testora/8.0.6/lib/naldflgs` -lnetv2 -lnttcp -lnetwork
    -lncr -lclient -lvsn -lcommon -lgeneric -lmm -lnlsrtl3 -lcore4 -lnlsrtl3
    -lcore4 -lnlsrtl3 -lnetv2 -lnttcp -lnetwork -lncr -lclient -lvsn -lcommon
    -lgeneric -lepc -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3 -lclient
    -lvsn -lcommon -lgeneric -lnlsrtl3 -lcore4 -lnlsrtl3 -lcore4 -lnlsrtl3
    `cat /test/testclone/testap/testora/8.0.6/lib/sysliblist` -ldl -lpthread -lm
    /test/testclone/testap/testora/8.0.6/rdbms/lib/defopt.o
    /test/testclone/testap/testora/8.0.6/rdbms/lib/ssbbded.o
    /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so
    /bin/sh: g++32: command not found
    make: *** [test/testclone/testap/testappl/msc/11.5.0/bin/MSCCPP] Error 127
    Done with link of msc executable 'MSCCPP' on Mon Aug 9 08:45:59 CST 2010
    Relink of module "MSCCPP" failed.
    See error messages above (also recorded in log file) for possible
    reasons for the failure. Also, please check that the Unix userid
    running adrelink has read, write, and execute permissions
    on the directory /test/testclone/testap/testappl/msc/11.5.0/bin,
    and that there is sufficient space remaining on the disk partition
    containing your Oracle Applications installation.
    Done with link of product 'msc' on Mon Aug 9 08:45:59 CST 2010
    Relinking of modules ENCACN, MSCCPP, MSCMON, MSCNEW, MSCNSP,
    MSCPCL, MSCPDW, MSCPRG, MSCSDW, MSCSLD, MSCXGCAL, MSONEW, and
    WPCFSQ produces multiple undefine symbol errors.
    Edited by: user8019167 on 2010-8-9 下午9:57
    Edited by: user8019167 on 2010-8-9 下午9:57

    Hi,
    Chanage:
    Migration EBS 11.5.10.2 from RHEL4.x x86-32bit to RHEL 5.3 x86-64bit (appsTier)Oracle Apps 11i is not certified on x86-64 for the application tier, only the database tier node is certified on a 64-bit OS (Split Configuration).
    Note: 343917.1 - Frequently Asked Questions: Oracle E-Business Suite Support on x86-64, 3. Is Oracle E-Business Suite supported on x86-64?
    Note: 357098.1 - Installation of E-Business Suite on Linux x86-64
    Thanks,
    Hussein

  • SOLVED /usr/bin/makepkg: line 552: build: command not found

    I'm trying to build a custom kernel, but am receiving this error:
    /usr/bin/makepkg: line 552: build: command not found
    I've searched all over for a fix, but haven't had any luck, it doesn't seem to be a common error, or it's so incredibly easy to fix that noone has bothered 
    Thanks for any help.
    /crobot

    Thanks for your response, it has failed on two builds, i'll post both.
    Here's the first:
    # $Id: PKGBUILD,v 1.26 2004/10/06 18:21:54 judd Exp $
    # Maintainer: judd <[email protected]>
    pkgname=kernel26
    pkgver=2.6.8.1
    pkgrel=3
    pkgdesc="The Linux Kernel and modules (IDE support)"
    url="http://www.kernel.org"
    backup=('boot/kconfig26')
    depends=('module-init-tools')
    install=kernel26.install
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
    config cdburning.patch logo_linux_clut224.ppm
    bio_uncopy_user-mem-leak.patch bio_uncopy_user-mem-leak-fix.patch
    http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/26-stable-release/acpi-20040715-2.6.8.diff.bz2)
    md5sums=('9517ca999e822b898fbdc7e72796b1aa' '20ad5bea85099dfcced9a6b91064b04e'
    '66b87662e6dd54b6324f874739fa1b99' '5a62bcc7e96601052c7405459b483826'
    'd2329bc663089cd99b8dbfd25b6a7ebc' '15a9165ae02c4a3a3875fb7924a68cbf'
    'e00d08709581f215b15e321d162f782c')
    build() {
    cd $startdir/src/linux-$pkgver
    patch -Np1 -i ../bio_uncopy_user-mem-leak.patch || return 1
    patch -Np1 -i ../bio_uncopy_user-mem-leak-fix.patch || return 1
    patch -Np1 -i ../cdburning.patch || return 1
    #patch -Np1 -i ../acpi-20040715-2.6.8.diff || return 1
    # Arch logo!
    cp ../logo_linux_clut224.ppm drivers/video/logo/
    # get rid of the 'i' in i686
    carch=`echo $CARCH | sed 's|i||'`
    cat ../config | sed "s|#CARCH#|$carch|g" >./.config
    yes "" | make config
    make clean bzImage modules || return 1
    mkdir -p $startdir/pkg/{lib/modules,boot}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    cp System.map $startdir/pkg/boot/System.map26
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26
    install -D -m644 Makefile $startdir/pkg/usr/src/linux-$pkgver/Makefile
    install -D -m644 .config $startdir/pkg/usr/src/linux-$pkgver/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/include
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/arch/i386/kernel
    for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-$pkgver/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp -a scripts $startdir/pkg/usr/src/linux-$pkgver/
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/.tmp_versions
    cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$pkgver/arch/i386/
    cp arch/i386/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$pkgver/arch/i386/kernel/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-$pkgver/$i
    done
    cd $startdir/pkg/usr/src/linux-$pkgver/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-$pkgver
    cd $startdir/pkg/lib/modules/$pkgver &&
    (rm -f source build; ln -sf /usr/src/linux-$pkgver build)
    Here's the second:
    ###### Give the kernel a unique name (for multiple builds - can be empty)
    _kerrev=crobot
    ###### Choose generic name, version, and release. updated later for $_kerrev
    pkgname=kernel26
    pkgver=2.6.8.1
    pkgrel=1
    pkgdesc="Custom Linux Kernel and modules"
    url="http://www.kernel.org"
    depends=('module-init-tools')
    ###### Add a default config file and any patches to be applied to source array
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2)
    ###### Add md5 checksums here:
    #md5sum=()
    getvar() {
    old=$(cat Makefile | grep "^$1")
    echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*(.*)[ ]*/1/g")
    return 0
    build() {
    cd $startdir/src/linux-$pkgver
    ###### apply patches here
    # patch -p1 < ../patch1 #model
    #get rid of i in i686 in default config
    carch=`echo $CARCH | sed 's|i||'`
    cat ../config | sed "s|#CARCH#|$carch|g" >./.config
    ###### Choose one of the following configuration types
    ###### Use first option for config in source array
    #yes "" | make config
    #make oldconfig || return 1
    make menuconfig
    #make xconfig
    #make gconfig
    ##### No user changes below here
    # save the configuration with today's date
    cp ./.config ../../NEWCONFIG-$(date +%b%d)
    # set EXTRAVERSION to create unique /lib/modules/ subdirectories
    _ker_extraversion=$(getvar "EXTRAVERSION")
    # update EXTRAVERSION in the Makefile by adding our _kerrev
    _oldline=$(cat Makefile | grep "^EXTRAVERSION")
    if [ $_kerrev != "" ]; then
    _ker_extraversion="$_ker_extraversion-$_kerrev"
    cat Makefile | sed "s|$_oldline|EXTRAVERSION = $_ker_extraversion|" > tmpMake
    mv tmpMake Makefile
    fi
    _kerrev=$_ker_extraversion
    kerver=$(getvar "VERSION").$(getvar "PATCHLEVEL").$(getvar "SUBLEVEL")
    # update the package information from the kernel Makefile
    # (just in case the Makefile changed during a patch)
    pkgver=$kerver$(echo $_kerrev | sed -e 's/-/./g')
    pkgdesc="Custom Linux Kernel and modules version: $kerver revision: $_kerrev /
    package ver: $pkgver build: $pkgrel"
    # changing the package name
    # removing patches versions from the revision string
    _t=$(echo $_kerrev | sed -e "s/^..[0-9]*//g")
    # _t=$(echo $_t | sed -e "s/^-rc[0-9]?*//g")
    # _suf contains the suffix identifying the kernel (it has the versions removed from
    it)
    _suf=$(echo $_t | sed -e "s/[0-9]*-/-/g")
    pkgname=kernel26$_suf
    echo "Package name: $pkgname"
    echo "Package ver: $pkgver"
    echo "Package desc: $pkgdesc"
    sleep 5
    make clean bzImage modules || return 1
    mkdir -p $startdir/pkg/{lib/modules,boot}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    # create unique names in /boot/
    cp System.map $startdir/pkg/boot/System.map26$_suf
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26$_suf
    install -D -m644 Makefile $startdir/pkg/usr/src/linux-$kerver/Makefile
    install -D -m644 .config $startdir/pkg/usr/src/linux-$kerver/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26$_suf
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/include
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel
    for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-$kerver/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp -a scripts $startdir/pkg/usr/src/linux-$kerver/
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/.tmp_versions
    cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$kerver/arch/i386/
    cp arch/i386/kernel/asm-offsets.s
    $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-$kerver/$i
    done
    cd $startdir/pkg/usr/src/linux-$kerver/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-$kerver
    # create a unique subdirectory under /usr/src/
    cd $startdir/pkg/usr/src
    mv linux-$kerver linux-$kerver$_kerrev
    cd $startdir/pkg/lib/modules/$kerver$_kerrev &&
    (rm -f build; ln -sf /usr/src/linux-$kerver$_kerrev build)
    Thanks,
    /crobot

  • Command not found error in Linux

    Hi all,
    While login into Linux server using terminal i am getting following error.
    -bash: /usr/bin/id: No such file or directory
    -bash: [: =: unary operator expected
    While execute these commands getting following errors
    # clear
    -bash: clear: command not found
    # du -sh *
    -bash: du: command not found
    Help on these issues.
    Linux 32bit OS.
    Red Hat Enterprise Linux Server release 4.0 (Tikanga)

    Likely a flaky environment.
    What is the contents of .bash_profile in your $HOME?
    Any btw, why RHEL4? It is ancient.

  • Oracle apps 12i pre install checks fails in cl; command not found

    Hi guyz,
    Im trying to install 12i on external hard drive (windows xp), I followed the steps from http://forums.oracle.com/forums/thread.jspa?threadID=447193&tstart=60&start=0
    The installation fails in
    command: cmd.exe /c D:\stage12\startCD\Disk1\rapidwiz\bin\adchkutl.cmd d:\Tools\MKS\mksnt\bin d:\Tools\MSVC\V98
    D:\stage12\startCD\Disk1\rapidwiz>echo off
    /cygdrive/c/WINDOWS/system32/cmd
    'which' command is available.
    /cygdrive/d/Tools/MKS/mksnt/bin/gnumake
    'gnumake' is available.
    'cl' is not available.
    ERRORCODE = 1 ERRORCODE_ENDThe system cannot find the path specified.
    cl: Command not found.
    RW-50011: Error: - System Utilities Availability test has returned an error: 1
    There are no spaces in MKS tool kit and Visualstudio2005 install dir but still the installation fails.
    I tried many combinations installing MKS and VS on c:, installing MKS and VS on d:, installing VC++ express edition but nothing worked. Also i have set the enviromental variable PATH each time i made a change. Still i get the same issue.
    Im doing this for a week now, had no luck.
    I had a successful installation of 11.5.10 from e delivery but it didn't had the financials modules needed. There is an update for 11.5.10 on edelivery but i was not sure if they had the financials modules in it, so i decided to go for 12i
    Can anybody help me with 12i installation or provide me steps how to apply the updates on 11.5.10 if updates have financials in it.
    I appreciate any help.

    Oracle E-Business Suite R12 Installation on Windows 2003
    Re: Oracle E-Business Suite R12 Installation on Windows 2003
    If you have a VC98, you are using Visual Studio 6. You need to be using Visual Studio 8, and set the Visual Studio directory in Rapidwiz to d:\Tools\MSVS\VC.
    The Vision installation of Oracle Applications has had Oracle Financials implemented for the fictitious company Vision Corporation from the beginning, 10.7 I believe, but definitely every 11i release has financials plus every other product licensed. Not all the newest products are fully implemented, but they are licensed.

  • ORACLE_HOME disappeared, SQLPLUS - bash: sqlplus: command not found

    OK, I am a newbie but am having real difficulty with my 10G DB which I had set up on Unix Solaris box but someone was messing around with it and now I can't see ORACLE_HOME, ORACLE_BASE and ORACLE_SID, they all return blank when I try to "echo" each.
    I realise I should have originally set it in Bash_profile, but is now too late.
    So how do I set them back up, I cannot get SQLPLUS / AS SYSDBA.........bash: sqlplus: command not found
    I have tried to reset and export but still doesn't work.
    I got the ORACLE_BASE as:
    training:/export/home/training/product/10.2.0/Db_1:N
    but can't seem to set the three variables to run SQLPLUS, any ideas what I am doing wrong?
    Tried messing around to reset but nothing works, this is the present state of affairs:
    env
    SSH_TTY=/dev/pts/3
    USER=training
    ORACLE_SID=training
    ORACLE_BASE=/oracle/app
    PATH=/usr/sbin:/usr/bin
    PWD=/export/home/training/product/10.2.0/Db_1/bin
    TZ=Eire
    PS1=\e[33m\h\e[31m-\u-\e[33m\W/\e[31m-$\e[32m
    SHLVL=3
    HOME=/export/home/training
    LOGNAME=training
    ORACLE_HOME=/oracle/app/product/10.2.0
    Can someone help me, really need a step by step guide to set these back up properly.
    Thanks

    just retyped the last one correctly:
    find / -name sqlplus -ls
    find: cannot read dir /var/lib/gdm: Permission denied
    find: cannot read dir /var/lib/log/gdm: Permission denied
    find: cannot read dir /var/mysql: Permission denied
    find: cannot read dir /var/dt/sdtlogin: Permission denied
    find: cannot read dir /var/core: Permission denied
    find: cannot read dir /var/run/smc898: Permission denied
    find: cannot read dir /var/spool/clientmqueue: Permission denied
    find: cannot read dir /var/spool/mqueue: Permission denied
    find: cannot read dir /var/fm/fmd/rsrc: Permission denied
    find: cannot read dir /var/fm/fmd/ckpt: Permission denied
    find: cannot read dir /var/fm/fmd/xprt: Permission denied
    find: cannot read dir /var/postgres/8.2/data: Permission denied
    find: cannot read dir /var/postgres/8.2/backups: Permission denied
    find: cannot read dir /var/sma_snmp: Permission denied
    find: cannot read dir /var/tmp/gconfd-root: Permission denied
    find: cannot read dir /var/tmp/orbit-root: Permission denied
    find: cannot read dir /var/krb5/rcache/root: Permission denied
    find: cannot read dir /var/opt/SUNWjass/run/20091012152456: Permission denied
    find: cannot read dir /.gconf: Permission denied
    find: cannot read dir /opt/SUNWlwact/misc/: Permission denied
    find: cannot read dir /opt/SUNWlwact/sdk/: Permission denied
    find: cannot read dir /opt/SUNWlwact/xsl/: Permission denied
    find: cannot read dir /opt/SUNWlwact/svc/: Permission denied
    find: cannot read dir /opt/SUNWlwact/man/: Permission denied
    find: cannot read dir /.sunw: Permission denied
    199411 1 -rw-r--r-- 1 training other 0 Jan 14 23:12 /export/home/training/sqlplus
    172460 2 drwxr-x--- 9 training other 9 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/sqlplus
    188055 10 -rwxr-x--x 1 training other 8776 Oct 27 18:00 /export/home/training/product/10.2.0/Db_1/bin/sqlplus
    184787 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/inventory/Templates/sqlplus
    184842 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/oc4j/j2ee/oc4j_applications/applications/isqlplus/isqlplus/WEB-INF/classes/oracle/sqlplus
    find: cannot read dir /root: Permission denied
    find: cannot read dir /proc/227: Permission denied
    find: cannot read dir /proc/832: Permission denied
    find: cannot read dir /proc/835: Permission denied
    find: cannot read dir /proc/458: Permission denied
    find: cannot read dir /proc/381: Permission denied
    find: cannot read dir /proc/624: Permission denied
    find: cannot read dir /proc/818: Permission denied
    find: cannot read dir /proc/2221: Permission denied
    find: cannot read dir /proc/290: Permission denied
    find: cannot read dir /proc/1166: Permission denied
    find: cannot read dir /proc/273: Permission denied
    find: cannot read dir /proc/229: Permission denied
    find: cannot read dir /proc/225: Permission denied
    find: cannot read dir /proc/478: Permission denied
    find: cannot read dir /proc/445: Permission denied
    find: cannot read dir /proc/815: Permission denied
    find: cannot read dir /proc/410: Permission denied
    find: cannot read dir /proc/432: Permission denied
    find: cannot read dir /proc/440: Permission denied
    find: cannot read dir /proc/427: Permission denied
    find: cannot read dir /proc/352: Permission denied
    find: cannot read dir /proc/443: Permission denied
    find: cannot read dir /proc/1352: Permission denied
    find: cannot read dir /proc/406: Permission denied
    find: cannot read dir /proc/2353: Permission denied
    find: cannot read dir /proc/670: Permission denied
    find: cannot read dir /proc/667: Permission denied
    find: cannot read dir /proc/405: Permission denied
    find: cannot read dir /proc/213: Permission denied
    find: cannot read dir /proc/16953: Permission denied
    find: cannot read dir /proc/1146: Permission denied
    find: cannot read dir /proc/2580: Permission denied
    find: cannot read dir /proc/27831: Permission denied
    find: cannot read dir /proc/444: Permission denied
    find: cannot read dir /proc/1338: Permission denied
    find: cannot read dir /proc/1350: Permission denied
    find: cannot read dir /usr/lib/cc-cfw: Permission denied
    find: cannot read dir /usr/aset: Permission denied
    find: cannot read dir /.gconfd: Permission denied
    find: cannot read dir /etc/flash/precreation: Permission denied
    find: cannot read dir /etc/flash/preexit: Permission denied
    find: cannot read dir /etc/flash/postcreation: Permission denied
    find: cannot read dir /etc/inet/secret: Permission denied
    find: cannot read dir /etc/apache/ssl.key: Permission denied
    find: cannot read dir /etc/sfw/openssl/private: Permission denied
    find: cannot read dir /etc/sfw/private: Permission denied
    find: cannot read dir /etc/webmin: Permission denied
    Looks a bit better:
    199411 1 -rw-r--r-- 1 training other 0 Jan 14 23:12 /export/home/training/sqlplus
    172460 2 drwxr-x--- 9 training other 9 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/sqlplus
    188055 10 -rwxr-x--x 1 training other 8776 Oct 27 18:00 /export/home/training/product/10.2.0/Db_1/bin/sqlplus
    184787 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/inventory/Templates/sqlplus
    184842 2 drwxr-x--- 3 training other 3 Oct 27 17:58 /export/home/training/product/10.2.0/Db_1/oc4j/j2ee/oc4j_applications/applications/isqlplus
    How to I run the sqlplus?

  • Sqlplus command not found

    Hi All,
    OS : Solaris
    Oracle Version : 10.1.0.2.0
    When i am trying to connect to database by typing sqlplus
    i am getting error
    -bash: sqlplus: command not found
    previously when i connect like that i am able to connect to database
    when i check space
    I have 32 GB Drive and free space is 288M.
    Can anyone tell me is this the space issue or any other issue.
    I logged in with Oracle User

    Vikas Kohli wrote:
    Hi All,
    OS : Solaris
    Oracle Version : 10.1.0.2.0
    When i am trying to connect to database by typing sqlplus
    i am getting error
    -bash: sqlplus: command not found
    previously when i connect like that i am able to connect to database
    when i check space
    I have 32 GB Drive and free space is 288M.
    Can anyone tell me is this the space issue or any other issue.
    I logged in with Oracle UserSet the environment variable PATH correclty and make sure you've added $ORACLE_HOME/bin folder to it
    export PATH=$ORACLE_HOME/bin:$PATH
    sqlplus / as sysdbaKamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

  • Ldconfig: command not found

    I just did a pacman -Syu and something went terribly wrong.
    Whenever i try to install a new program i get something like this:
    $ pacman -S glibc
    warning: glibc-2.10.1-3 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): glibc-2.10.1-3
    Total Download Size: 0.00 MB
    Total Installed Size: 31.47 MB
    Proceed with installation? [Y/n]
    checking package integrity...
    (1/1) checking for file conflicts [##############################] 100%
    (1/1) upgrading glibc [##############################] 100%
    /tmp/alpm_ZLRuBH/.INSTALL: line 39: ldconfig: command not found
    /tmp/alpm_ZLRuBH/.INSTALL: line 40: init: command not found
    Generating locales...
    en_US.UTF-8... done
    en_US.ISO-8859-1... done
    Generation complete.
    sh: ldconfig: command not found
    error: command failed to execute correctly
    Checking the integrity of the local database in /var/lib/pacman/
    any ideas?

    Have all the users with GNOME started a root's Terminal window???
    I've noticed that using the Gnome's root terminal messes up the $PATH variable (as of today)... when i start archlinux (note: i don't use GDM) my path is:
    /bin:/usr/bin:/sbin:/usr/sbin....
    and many other items... but when a root terminal is started inside gnome, $PATH changes to:
    /usr/ucb:/bin:/usr/bin:/etc
    And ldconfig will fail... (and any other tool in /sbin) this change is restricted to this window only. If you exit the root terminal and go to a normal terminal, the path is what is expected.
    This happens on a clean reformatted machine, installed archlinux, doing a pacman -Syu, installing gnome and all extras (including system administrations tools) (as tested today).
    Maybe some config file is messed or is a bug from the Gnome guys...
    Anyways the only workaround i can think is to start a normal terminal (for the guys that use gnome or use GDM to start their machines) and in the terminal doing a "su -" to got root access (of course will ask for the password) and then update/install/whatever you want with pacman.
    And sorry about my english.
    J.
    Last edited by stargeizer (2009-09-24 14:35:10)

  • Executing CR HOST script, encountering command not found

    Hi All,
    I new to writing Host scripts, especially for use within the Applications.
    I need to go out to an FTP site and grab a file.
    The FTP portion of the script works fine.
    The problem I'm encountering is with the execution of regular commands like 'cd' or 'mv'.
    The error comes back, ...line xx: cd: command not found
    When I have an actual directory path with the cd command - I always get, No such file or directory...
    (I have verified the directory paths I'm attempting to change to exist and available.)
    The FTP portion executes, but the received file goes into some obscure server directory. Can't even perform a move of the file.
    The echo command works fine.
    I have created just a dummy script to do a cd /u32/... command and still the same Error.
    Any suggestions will be very helpful.
    Thanks,
    Bradley

    Here is a main code script....
    #$HEADER: XX_BANK_STMTS_IMPORT
    # PROGRAM NAME: XX_BANK_STMTS_IMPORT
    # PURPOSE:
    # Load XXXX Bank Statements
    # XX Bank Statements Import Concurrent Program
    # This script requires to run as Concurrent Request
    P_LOGIN="$1"
    P_USER_ID="$3"
    P_REQUEST_ID="$4"
    REMOTE_USER=ftpuser
    REMOTE_PASSWD=ftpuser
    FTP_DIR=u32/oracle/DBCTEST/apps/apps_st/xxcust/12.0.0/ftp/inbound
    REMOTE_PATH=public/dbco_cng/reporting
    REMOTE_FILE=*.PGP
    echo "USER = "${USER}
    echo "HOST = "${HOSTNAME}
    echo "Directory = "${PWD}
    cd /u32/oracle/XXXTEST/apps/apps_st/appl/xxcust/12.0.0/ftp/inbound
    echo "Directory = "${PWD}
    echo " Transferring File"
    ftp -n -i -v <<-EOF
    open XX.XX.XXX.XXX
    user $REMOTE_USER $REMOTE_PASSWD
    ##lcd $FTP_DIR
    cd $REMOTE_PATH
    mget $REMOTE_FILE
    EOF
    I get errors like
    /u32/oracle/XXXTEST/apps/apps_st/appl/xxcust/12.0.0/bin/XX_BANKFILE_LOAD.prog: line 108: cd: /u32/oracle/XXXTEST/apps/apps_st/appl/xxcust/12.0.0/ftp/inbound
    : No such file or directory
    or if I just put the cd command:
    cd: commad not found
    The commented out lcd was from previous tries at doing it that way... No luck.
    Thanks.

Maybe you are looking for