Bash: command not found

Since two days, I have a problem running some system commands, for example:
mkinitcpio
reboot
lspci
etc.
The result being: bash: mkinitcpio: command not found
The files are there, but work only if I give full path to them. I know it has something to do with the PATH variable not being loaded at the start of system, but I do not know how to fix it.
Help, please.
Last edited by Lockheed (2011-05-13 21:31:31)

$ echo $PATH
/usr/lib/libfm:/bin:/usr/bin:/usr/local/bin:/home/juha/bin
$ cat /etc/profile
# /etc/profile
#Set our umask
umask 022
# Set our default path
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PATH
# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
for profile in /etc/profile.d/*.sh; do
test -r "$profile" && . "$profile"
done
unset profile
fi
# Source global bash config
if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then
. /etc/bash.bashrc
fi
# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP
# Man is much better than us at figuring this out
unset MANPATH

Similar Messages

  • Bash: command not found after piping

    Hi,
    I'm trying something quite commonly found in an Unix environment, namely piping the output of one command into the input of a subsequent one, eg.
       bash$ ps ax | grep -i bash
    But unfortunately I'm receiving--and now comes the most curious part--most of the times (not always!!) an error message
       bash: grep: command not found
    When calling grep directly
       bash$ grep
    the resulting output is
       Usage: grep [OPTION]... PATTERN [FILE]...
       Try `grep --help' for more information.
    "which"-ing the commands
       bash$ which bash ps grep
    results in
       /bin/bash
       /bin/ps
       /usr/bin/grep
    Cheers,
    MMHein

    Good, you tried a different shell.  sh and bash are essentially the same executable on Mac OS X.
    Did you try a new user account?  What were those results?
    Have you tried installing your own bash?  Either build from sources, or use something like MacPorts.org to install one already configured for Mac OS X.
    You also have ksh and zsh if they happen to rock your boat (see /etc/shells for a list of installed shells).
    I think both Linc an dI agree that we have never seen this situation before either, which is why we suspect something has become corrupt.  The "Nuke and Pave" approach tends to eliminate that possibility.  But since you have lots of Unix experience (even though you missed a few Unix flavors ), and want to find the root cause, then you need to start doing tests that eliminate components.
    The shells on my Mac OS X 10.7.2 Lion system have the following chksum's
    cksum /bin/*sh
    188949626 1371648 /bin/bash
    1672788767 772992 /bin/csh
    4164734636 2180736 /bin/ksh
    1711289041 1371712 /bin/sh
    1672788767 772992 /bin/tcsh
    2366092939 1103984 /bin/zsh
    I would expect yours to be identical.  But that does not take into account any libraries used.  And if you have the same values, then you need to look at something else (again, a new account can go a long way to eliminating things in your environment, or pointing to a system component).

  • [FIXED] bash: #: command not found

    Hi all,
    Getting this bash error every time I open a terminal. I've done a bit of reading on this error but I can't quite figure out how to fix it.
    $ echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    Any suggestions?
    Last edited by Gwynplaine (2014-11-13 15:03:37)

    I removed it from .bashrc and used "sudo pacman -Rns alsi" to remove it and the problem remains.
    Also, the contents of out.txt:
    1325 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libvte.so.9", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libX11.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxfce4ui-1.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgtk-x11-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgdk-x11-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libatk-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgdk_pixbuf-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgio-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpango-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgobject-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxfce4util.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpangocairo-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpangoft2-1.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libfontconfig.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libfreetype.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libcairo.so.2", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXext.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libncursesw.so.5", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libSM.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libICE.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libstartup-notification-1.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgmodule-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXfixes.so.3", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXrender.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXinerama.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXi.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXrandr.so.2", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXcursor.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXcomposite.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXdamage.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpng16.so.16", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libffi.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpcre.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgthread-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libharfbuzz.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libexpat.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libbz2.so.1.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libpixman-1.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libEGL.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-shm.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-render.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libGL.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXau.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXdmcp.so.6", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libuuid.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-util.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libX11-xcb.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgraphite2.so.3", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-dri2.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-xfixes.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-shape.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libgbm.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libwayland-client.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libwayland-server.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libglapi.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libdrm.so.2", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-glx.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-dri3.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-present.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-randr.so.0", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxcb-sync.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libxshmfence.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/libXxf86vm.so.1", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
    1325 open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/share/locale/en_GB.UTF-8/LC_MESSAGES/xfce4-terminal.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en_GB.utf8/LC_MESSAGES/xfce4-terminal.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en_GB/LC_MESSAGES/xfce4-terminal.mo", O_RDONLY) = 3
    1325 open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/lib/gconv/gconv-modules", O_RDONLY|O_CLOEXEC) = 3
    1325 open("/usr/share/locale/en_GB.UTF-8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en_GB.utf8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en_GB/LC_MESSAGES/glib20.mo", O_RDONLY) = 3
    1325 open("/usr/share/locale/en.UTF-8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en.utf8/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1325 open("/usr/share/locale/en/LC_MESSAGES/glib20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    1326 +++ exited with 0 +++
    1325 +++ exited with 0 +++

  • Bash command not found - ssh

    Hi there
    How to set up common PATH for both local and remote login?
    When I type # echo $PATH from a ssh , only /usr/bin is shown so I cannot use commands like shutdown or devfsadm since they are in /usr/sbin
    If I issue the same command locally the echo $PATH shows a longer path: /usr/dt/bin, /usr/openwin/bin, and so on.
    Thanks in advance
    Regards
    Vicente

    To make the variables availble for both remote and local logins, you should edit/create the following file on your home directory:
    ~/.profile
    Somewhere in the file you should have the line setting the PATH variable, such as this:
    PATH=$PATH:/usr/sbin:/usr/local/bin
    export PATH

  • -bash: then : command not found

    Hi
    Sorry i have post the same problem in Infrastruture but i am not getting a quick reply.Thats why i am posting this in the database thread.
    I have installed OEL 5.I am going to install Oracle 11g.I have configured Kernel for oracle.But now when give the command su - oracle there is an
    -bash: then : command not found
    -bash: : command not found
    When i give su - then also same these lines appear.Please send me a solution.
    Will this give nay problem in database installation
    Regards
    Bobby

    user12119634(bobs) wrote:
    Hi
    Sorry i have post the same problem in Infrastruture but i am not getting a quick reply.Thats why i am posting this in the database thread.
    I have installed OEL 5.I am going to install Oracle 11g.I have configured Kernel for oracle.But now when give the command su - oracle there is an
    -bash: then : command not found
    -bash: : command not found
    When i give su - then also same these lines appear.Please send me a solution.
    Will this give nay problem in database installation
    Regards
    BobbyTry
    export PATH=/bin:$PATHthen do again

  • 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?

  • Bash: SQLPLUS: Command not found

    Hi All,
    I'm facing problem during connecting to SQLPLUS in Linux Plateform Redhat 4.....whenever I write SQLPLUS, it gives me the following Error message
    Bash: Sqlplus: Command not found.
    kindly let me know, how can I get rid of this Error. Thanks
    Regards,
    Imran

    Your environmentals are not setup.
    From the command prompt source oraenv
    ~> . oraenv
    or (depending on your os )
    ~> source oraenv
    Respond to the prompt with the name of your database exactly (uppercase/lowercase) as it is in the oratab file (/etc/oratab ?)
    This will set your ORACLE_HOME, ORACLE_SID, and PATH variables correctly for your database.
    Try sqlplus again and see if that does not work for you.

  • Bash: chkconfig: command not found

    Hi,
    I have made a a file dbora and made an entry in the /etc/init.d
    (The file basically does the Automatic Oracle Startup)
    I have created a dbora file
    I have then made the :$chmod 750 /etc/init.d/dbora
    Then $chconfig -level 345 dbora on
    Then its throwing error :bash:chkconfig: command not found
    I have logged in as root:
    $whereis chkconfig
    its shwoing :chkconfig: /sbin/chkconfig
    I tried also the same but not working
    Kindly can anyone help me on this

    uuh...ohhh...the answer to this question can be found at any fuckin bullshit linux documentation?!? so why don't you flame this guy for rtfm questions like the others for asking questions which can be googled for? Well Mr ASCORBINE why doesn't your post contain a link like http://lmgtfy/?q=command+not+found ?!? Actually the FIRST hit to this query got me to the solution, so if you are that wizard you pretend to be why didn't you rtmf him?!? Nah you seem to be another forum troll like others who is upset by himself for being a smartass....

  • Java -version bash: java: command not found

    Hi all.
    I wanna install java on linux (OpenSUSE). When I checked java -version, it shown that :
    java -version
    bash: java: command not found
    Can any solution about it, please!

    Sukirmanster wrote:
    I wanna install java on linux (OpenSUSE). When I checked java -version, it shown that :
    java -version
    bash: java: command not foundNot surprising if you have not installed java yet.
    Can any solution about it, please!If you have installed java, read a unix/linux manual,
    pay particular attention to bash (or any shell) and the role of $PATH.

  • Type "purge" in Terminal and get:   -bash: purge: command not found   Is there another built-in command to clear memory leaks?   want to clear memory periodically

    I have 10.6.8.  When I type "purge" in Terminal I get:   -bash: purge: command not found   Is there another built-in command to clear memory leaks?   I have FreeMemory (works well) and considering FreeMemory Pro, to clear memory periodically, say every 20 minutes, or preferably when a threshold is reached, say when only 100MB is available.

    To get purge to work you need to install Xcode from Optional Installs on the 10.6 install DVD. Also be sure you install CHUD Tools with it.
    But running purge or anything like it is pointless if within a short period of time the VM just grows back again. Sounds like you need more RAM.
    Where are the memory leaks? Just because the VM reaches a certain size doesn't necessarily mean it's from a memory leak.

  • -bash: gcc_select: command not found

    HI
    I am try to compile the Darwin kernel 9.8 on my system according this page https://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/KernelP rogramming/build/build.html
    but unfortunaly I get the error message
    -bash: gcc_select: command not found
    According to the manpage http://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/ 10.5/man1/powerpc-apple-darwin9-gcc-4.0.1.1.html
    In Apple's version of GCC, both cc and gcc are actually symbolic links to a compiler named like        gcc-version; which compiler is linked to may be changed using the command gcc_select.  Similarly, c++        and g++ are links to a compiler named like g++-version.
    but unfortunaly I didn´t got the command on my system
    can anybody help (sry for the bad english) if the is not enough information pls tell me
    System
    Macbook5.1
    Mac OS X 10.5.8
    Xcode 3.1.2
    Thank in advance

    Thank for the answer
    but unfurtunaly I can´t sign in to the developer Forum don´t know why
    I suggest that I have to pay $99/year to get access to Forum
    Developer Technical Support Incidents are only available to members of the iOS, Mac, and Safari Developer Programs.
    for a simple answer I am not ready to pay 99$ that is rip off fraud
    Welcome to Apple
    NO MONEY get out of here
    realy sad
    Hope that someone can help me with my issue how to get the gcc_select or how to change the gcc
    cheers

  • -bash: make: command not found

    Help me please. I downloaded cdrecord because I need a tool called makeisofs but I am told that I need to compile it first before I can use it. The directions say to type "make" to compile it but when I type make in the terminal window, I get the following message:
    -bash: make: command not found
    I've spent hours looking all over the web for an explanation but I just can not find anything to help me. I even joined some IRC channels but no one types anything in those rooms. It is the weirdest thing.
    Can anyone tell me why I can't compile? The directions I got with the download don't explain a thing.

    I found something that might help. On the second Leopard DVD, there is something called Xcode Tools which I am told has what I need. I'll respond if I have any other questions. Thanks for reading.

  • (OEL 4.7) -bash: sqlplus: command not found after install of 10g R2

    Hi all
    I'm new to Linux and I would like your help and directions on a few things:
    After 2 days of battle with RPM's (i386 vs x86_64) i was finally able to install 10g R2 on OEL 4.7 x86_64 system without any errors.
    please check if all these settings are correct and help me how to start sqlplus? or create a database with dbca
    I followed all the directions in Doc ID: 339510.1.
    During installation i choose this path as the ORACLE_HOME
    /u01/app/oracle/product/10.2.0/
    I did not however installed the default database.
    I then ran the two scripts at the end of the installation as root.
    Here are my settings:
    oracle bash_profile:
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    :q
    ORACLE_BASE=/u01/app/oracle
    export ORACLE_BASE
    ORACLE_HOME=/product/10.2.0/db_1;
    export ORACLE_HOME
    export PATH=$ORACLE_HOME/bin:$PATH
    here is my oracle env result
    [oracle@nycoralp01 /]$ env | grep -i ORACLE
    OLDPWD=/home/oracle/oraInventory
    USER=oracle
    ORACLE_BASE=/u01/app/oracle
    MAIL=/var/spool/mail/oracle
    PATH=/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
    HOME=/home/oracle
    LOGNAME=oracle
    ORACLE_HOME=/product/10.2.0/db_1
    here is my echo $ORACLE_HOME result:
    [oracle@nycoralp01 /]$ echo $ORACLE_HOME
    /product/10.2.0/db_1
    Can someone please tell me what did i miss or did not set?
    When i try to run sqlplus i get this error
    [oracle@nycoralp01 /]$ sqlplus
    -bash: sqlplus: command not found
    Any help appreciated

    I change it in my bash_profile
    $ vi ~oracle/.bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    :q
    ORACLE_BASE=/u01/app/oracle
    export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;
    export ORACLE_HOME
    export PATH=$ORACLE_HOME/bin:$PATH
    and i'm still getting the same error
    -bash: sqlplus: command not found
    Is there anything else i'm missing? do i have to restart anything?

  • Opmnctl status: "bash: opmnctl: command not found"

    Hi All,
    I am working to setup an OBI 11g VM image to my local system. The VM is a linux OS and my local m/c is Windows7. I am able to login to the VM using oracle/oracle. But the thing is, I am not able to start up my BI server over the VM.
    I checked the status of opmnctl file present at: /home/oracle/obiee/instances/instance1/bin. But getting the message as "bash: opmnctl: command not found".
    I did reboot the VM a few times as well. But, i am not sure can this be a problem? Please suggest what I did wrong and how can I resolve it.
    Thanks.

    Is opmn running?
    try using a different shell e.g ksh.
    l

  • I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    It appears that you may not have a properly installed OS X system.
    You must be connected to the Internet to reinstall OS X.
    In the menu bar, choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
    Select “Disk Utility,” and then click Continue.
    Select your startup disk from the list on the left, and then Repair Disk.
    After disk is repaired, select Reinstall OS X, then click Continue.
    Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk

Maybe you are looking for