PATH in my .bashrc

Hello ,I installed Homebrew today and with command line "brew doctor" i got this :
brew doctor
/usr/bin is in your PATH before Homebrew's bin. This means that system-
provided programs will be used before Homebrew-provided ones. This is an
issue if you install, for instance, Python.
Consider editing your .bashrc to put:
/usr/local/bin
ahead of /usr/bin in your $PATH.
Some brews install binaries to sbin instead of bin, but Homebrew's
sbin was not found in your path.
Consider editing your .bashrc to add:
/usr/local/sbin
to $PATH.
What excatly should i write in .bashrc to fix this ?

There are a number of options.
You might consider the option in this link -> http://www.softec.lu/site/DevelopersCorner/MasteringThePathHelper .
You also edit /etc/profile and nuke the path_helper utility then create a traditional /etc/profile.
Or you could use sledgehammer approach and set your PATH in your .bash_profile like this ->
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin"

Similar Messages

  • Is there a single file that holds all of my PATH data?

    In the process of getting some things (Skype and Maven) to run I've managed to get some directories to appear twice when I echo $PATH. Is there a single file that I can edit to as to keep this list tidy and readily accessible?

    jmags wrote:Thanks for the answers. Nevertheless, there are more things about which I am curious. For example, if I enter "export PATH = $PATH:/some/new/path" on the command line, is that written into my .bashrc?
    Your path is in a system variable named PATH.  By convention, variable names are in all capital letters.  To access this variable in bash, you put a $ in front of the variable name, in this case $PATH.  The command
    export PATH = $PATH:/some/new/path"
    entered on the command line appends /some/new/path to the system variable named PATH.  It does not change .bashrc in any way.  In fact, if you want your new PATH set everytime you enter bash, put the
    export PATH=$PATH:/some/new/path
    in your .bashrc file, and it will be executed every time you start bash and be there automatically for you.
    For further info on this, look at the man page for bash
    $ man bash
    Shell Variables
           The following variables are set by the shell:
        HOME   The home directory of the current user; the default argument for
                   the cd builtin command.  The value of this variable is also used
                   when performing tilde expansion.
        PATH   The  search  path for commands.  It is a colon-separated list of
                  directories in which the shell looks for commands  (see  COMMAND
                  EXECUTION  below).   A  zero-length (null) directory name in the
                  value of PATH indicates the current directory.  A null directory
                  name  may  appear  as  two  adjacent colons, or as an initial or
                  trailing colon.  The default path is  system-dependent,  and  is
                  set  by  the administrator who installs bash.  A common value is
                  ``/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin''.
    as a couple of examples.   
    Pudge
    Last edited by Pudge (2007-05-10 01:55:16)

  • [SOLVED] Gnome-Shell: Alt+F2 and PATH

    Hallo everybody,
    I have added $HOME/bin to my PATH with
    export PATH="$HOME/bin:$PATH"
    in my .bashrc.
    This works fine with the terminal, but Gnome-Shell's Alt+F2 doesn't find the scripts in ~/bin.
    How can I add ~/bin to the PATH of Alt+F2?
    Thank you.
    Last edited by lunyx (2011-09-05 09:34:41)

    lunyx,
    Welcome to Arch.  If you consider this thread solved, go ahead and edit your first post and add [SOLVED] to the beginning of the thread title.  It helps those searching for solutions.  The moderators don't do that, because we don't really know when members regard things as solved.
    Thanks.

  • Gnome run command source .bashrc

    Hi, after using just xmonad for a long time I'm now trying to get gnome and xmonad to play nicely together.  I am starting my gnome-xmonad session from GDM which was started with runlevel 5 in inittab--I followed the wiki.  Now in gnome, the run command dialogue (alt-f2) does not seem to source my ~/.bashrc.  I use an xmonad run util and under gnome-xmonad that run util does not source my ~/.bashrc either.  I have my PATH specified in my .bashrc but I cannot run the commands that rely on the path set in .bashrc.  I do have a ~/.bash_profile which sources ~/.bashrc, so that is not the issue.  In a terminal, my path is fine, but not from those run dialogues.  The xmonad run util worked fine when I would start xmonad with startx.  Any advice on how to get gnome to source my ~/.bashrc?

    I don't know about sourcing your .bashrc in gnome, but you are probably better off moving your PATH definition to your .bash_profile, before you source the .bashrc.

  • User's PATH after filesystem upgrade of 2013-06-03.

    Changing the directories /bin etc. to symbolic links to /usr/bin is transparent for most programs.  However, certain programs such as shotwell (see bug FS#35899 filed on this package) are sensitive to how they are invoked, as influenced by the PATH variable.  If /bin comes first in the PATH, then after the filesystem upgrade, shotwell is invoked as "/bin/shotwell" instead of "/usr/bin/shotwell".  As a result, shotwell looks in "/bin/../*" for stuff it needs, rather than in "/usr/bin/../*".  As a result, the unqualified invocation "shotwell" fails.  This appears to be due to shotwell's dependency on vala, so other vala-based programs may be affected.
    A solution is to remove /bin, /sbin, and /usr/sbin from one's legacy PATH in .profile/.bashrc, etc.
    Perhaps users should be warned about this in the upgrade instructions on the homepage.
    Thanks to  Sid Karunaratne (sakaru) for isolating this problem.
    Last edited by djraymondnm (2013-06-26 21:02:48)

    Taking a pragmatic approach to this: as far as I know this is the only post about a bug like this. Now I know that doesn't mean it hasn't happened to other people, but unless it's a common problem I don't think we need to post a news bulletin or push post-upgrade messages into potentially breaking packages.
    To be honest I'd consider this a bug in shotwell that should be fixed upstream, seems very odd that you can make the app but not run it until it's make install'd and executed from the installed location.
    Thinking on more arch terms (as I understand them); This bug only occurs if you modified /etc/profile. Archlinux cannot start notifying users of breakages that may occur from all kinds of various configurations. I'm not saying that we should never notify users of potential breakages, but there should be limits and in my opinion this falls outside those limits.

  • /sbin not in PATH after installing lightDM?

    Sorry, I'm a tad confused here, and very new.
    When I try to run fdisk, or other similar commands found in /sbin, from the terminal... it says they aren't found.
    If I run /sbin/fdisk ,  the command works fine.  I am also not able to reboot or shut down the pc unless I do so from the terminal - /"sbin/reboot"
    I can change my path within the terminal, and fdisk works fine on its own, but obviously, once I close the terminal, that change goes away.
    The path in my /etc/profile is as follows:
    PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
    export PATH
    It looks to me like /sbin is there just fine, but what do I know.
    This change happened after installed lightDM, which otherwise works flawlessly. 
    Thanks for any help

    Sorry, I'm a total idiot today.  I couldn't remember where I read that stuff (the comments).  Anyway, before coming back here, I fixed the /sbin issue, as well as the shutdown/reboot issue with oblogout, but I don't think they are the best solutions.  (Adding path to bash.bashrc, and adding /sbin/ to oblogout.conf)
    Maybe I will try another DM instead.  This is just my first shot at anything linux, so.. I'm having fun!
    Thank you
    Last edited by ianforcements (2011-10-21 20:18:40)

  • Global PATH variables?[solved]

    How do i set global path variables in archlinux??
    I need to do this because ie, I am using gmrun, and I just installed xarchiver. But gmrun cant find xarchiver since it is located in /opt/xfce4/bin/.. I can append this to my PATH in .zshrc/ .bashrc file, but this only helps when i run it through the terminal.
    I want to also be able to have a global alias file, to run the alias xterm = 'xterm -bg black -fg white' through gmrun.
    Couldnt find any documents on how this works in archlinux.
    Last edited by jinn (2007-02-04 10:56:40)

    For the path, run 'bash /etc/profile' to update the path for the current terminal. You can also logout then relogin to set them for the whole session. No files needs changing.
    For the alias, create a 'etc/profile.d/alias.sh' file. add the alias in it and give it executable permission. For the change to take effect, you'll need to run  'bash /etc/profile' or logout/relogin.

  • [SOLVED]CompizStandalone-GDM,ugly theme,keyboard and desktop handling

    Hi, i believe i have successfully installed compiz as standalone but i have a few issues;
    1. Fist of all i cannot change my keyboard layout. I tried this https://wiki.archlinux.org/index.php/Xo … t-Plugging and i have following in my xorg.conf but no luck
    Section "InputClass"
    Identifier "Keyboard Defaults"
    MatchIsKeyboard "yes"
    Option "XkbLayout" "tr"
    Option "XkbVariant" "alt"
    EndSection
    2. Second, i have to do Ctrl+Alt+F1 then startx to get compiz working. Is there any way that i can add this to GDM just like any desktop environment ?
    3. How do i use the desktop ? I have set up a wallpaper in CCSM and folders are opening in Firefox.
    4. Lastly, themes look ugly. Is this normal or did i miss something ?
    Last edited by Selo (2012-03-12 19:08:34)

    1. I'm not sure how to help here; I think xmodmap migh tbe involved? I use the standard keyboard layout and switch to kana input with Anthy through IBUS.
    2. I use a .desktop file with LXDM and a script to accomplish this.
    The .desktop file (/usr/share/xsessions/compiz.desktop):
    [Desktop Entry]
    Encoding=UTF-8
    Type=XSession
    Exec=/usr/bin/start-compiz
    TryExec=/usr/bin/start-compiz
    Name=Compiz Standalone
    The script:
    #!/bin/bash
    # Wallpaper
    nitrogen --restore
    # Sound
    SOUND_THEME='ootw'
    jackd -rd alsa -Hs &
    amixer set Master 80%
    xset -b&
    # PATH fix
    PATH=${PATH}$(grep ^PATH /home/mouse/.bashrc | cut -d \} -f 2)
    export PATH
    # TZ
    TZ='GMT'
    export TZ
    # VST path
    VST_PATH='/home/mouse/.vst/'
    export VST_PATH
    # Dockbar
    avant-window-navigator &
    # Tray applets
    pnmixer&
    wicd-gtk -t&
    batti&
    # Once!
    #urxvt -tr -sh 10 -e tmux
    # Keys
    xbindkeys&
    # Beep!
    mplayer "/usr/share/sounds/${SOUND_THEME}/stereo/desktop-login.ogg"&
    # Compiz
    fusion-icon # NOTE: The script stops here, and picks up when I select 'Quit' in Fusion-Icon
    # Boop!
    mplayer "/usr/share/sounds/${SOUND_THEME}/stereo/desktop-logout.ogg" # After this, the script exits and returns me to LXDM
    3. You can set up wallpaper either through CCSM or Nitrogen, Feh, what-have-you. I assume you mean desktop icons when you say "use the desktop". For those you can use community/idesk.
    4. You need to set the GTK theme. Try community/lxappearance.

  • Doesn't Redhat 8.0 come with Java

    I just installed RH 8.0, to test out and see if it would be a good programming environment for me. But I thought, RH 8.0 came with the Java compiler and interpreter, along with other stuff. In fact during installation I remember checking all the packages that I wanted, and I remember checking for the java compiler and interpreter. Now I looked at my path in my .bashrc (?) and it doesn't specify any java directory. So now I am really confused. If I wanted to program in java in RH, do I have to download the JDK? Or can I just find the java files somewhere hidden in my system?

    Your compiler should probably be at /bin/javac. If you don't find it there do this:
    find / -name javac
    If you get a bunch of shit try this
    find / -name javac 2> /dev/null
    If you don't get a good directory to the compiler from those, you don't have the developement environment installed.
    Last piece of advice, buy a good UNIX or LINUX book. You're not going to get far without a good library. You can ask questions here (in this thread), but this supposed to be a Java forum after all (I don't mind terribly, I know more about Linux than Java anyway).
    Another great idea is to do searches on the net for your problems. A great resource is www.redhat.com, but be careful of versioning, redhat has the potential to be the M$ if they don't stop changing everything in every version. There is also plenty of Linux resources out there, but you have to be careful with that too, they tend to be proprietary depending on who knows what about what.
    Funny that a GNU OS could get proprietary. That's what happens when folks realize you can make money off something.

  • Java home in mac OSX

    i have installed java 1.4.2 in Mac and set the path to a location.
    like
    export JAVA_HOME={some path} in the .bashrc file
    But when ever i run the following command from the terminal
    $which java
    it shows the default java path instead of one put in .bashrc file
    pls help asap

    You are off-topic, try http://forum.java.sun.com/forum.jspa?forumID=54 instead.

  • Cross Schema Issues for certain commands

    Within Raptor, there are some commands that don't legitimately work when you are manipulating tables outside of your own schema. The menu items for these should be greyed out. An example is if I want to move a table, the SQL for this command is:
    alter table "XXX" move.
    Since this SQL command doesn't allow for a schema, it fails with a misleading error message. ORA-00942 Table or view does not exist. For many DBA's it may be readily apparent as to why this error occurs, but for most future Raptor users they'll be confused.

    As root:
    /bin:/usr/bin:/sbin:/usr/sbin:/opt/mozilla/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core
    As normal user:
    ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
    You got it in one Morra, a path issue. any reason why they are not the same by default? Solved the issue by copying the root PATH into my .bashrc, but it would be nice to know why they aren't the same.

  • Howdy, and some questions

    I have been building my own system with Linux From Scratch for five years, but after two weeks of struggling with the latest Gnome I decided I'm gettin' too old for this stuff.  Arch looks like the perfect next step - plenty of control over what gets installed, but no more headaches with source builds.
    So anyway, I have a few newbie questions...
    Grub was giving me grief (say that three times fast) when it tried to load the root system on /dev/hda6 because it could not find /dev/hda6 - well, yeah, that's because the Arch kernel does some weird translation of ide drives into pseudo-scsi so in the /dev tree it's called /dev/sda6.  I changed menu.lst to load the root from /dev/sda6 and it still wouldn't cooperate... I get some error about kinit: Cannot open root device.
    Bear with me, I'm getting to the question eventually... anyhow, I finally gave up and copied my LFS kernel over to /boot and restored the menu.lst from the LFS partition.  My question is, is there any reason not to build and use my own kernel or will this give pacman fits when it looks for updates?
    Also, I notice bash is not loading the initial path from /etc/login.defs.  It seems to have hard-coded a path that includes /usr/gnu/bin and the like.  How can I get it to read /etc/login.defs?  For now I'm working around the problem by hard-coding paths in /etc/bashrc.
    Finally... what happened to my backspace key?  I'm loading a standard us keyboard, and I don't think I had to do anything special in LFS to make the backspace work, but now I just get funky control characters when I press backspace.
    I'm sure I will have more questions when I start installing other packages (had to chroot to my LFS partition to get into firefox and log on here) but so far I'm happy and I have a three-day weekend ahead of me to tweak Arch within an inch of its life.
    Peter B. Steiger
    Cheyenne, WY

    Howdy,
    I think there's some bug in the installer on the latest ISO, thus the problems (I wonder how that actually slipped through, it's quite a grave bug after all). sdX notation comes from the in-kernel move to a newer subsystem, called libata (common "architecture" for both IDE and SATA drives). You probably would be alright if you booted using kernel26-fallback.img and then ran "mkinitcpio -k 2.6.22 -g /boot/kernel26.img".
    You can safely run your own kernel. That's the beauty of Arch - you can generally do whatever you want to do with it, you just get some nice additions like a package manager, package repositories and a nice community.
    Are you referring to $PATH, which is set in /etc/profile and /etc/profile.d, or some other thing?
    Never got any problems with a backspace in the console in Arch. Perhaps some $TERM issues.
    Enjoy your stay in the Arch world.

  • Preparing for dwm install

    I am preparing to install dwm.
    I uderstand I have to install from source if I want to be able to cutomise the wm.
    From what I have read (for example here: http://www.xsnake.net/howto/dwm/dwm-eng.php) I would do the following;
    Download dwm from their site;
    wget http://dl.suckless.org/dl/dwm/dwm-5.8.2.tar.gz
    cd /path/to/dwm-5.8.2.tar.gz
    tar zxvf dwm-5.8.2.tar.gz
    make clean install (as root)
    cp config.def.h config.h
    tweak config.h then;
    make clean install (as root)
    Is this an accurate summary?

    Don't install it without tweaking:
    ancleessen4 wrote:
    Download dwm from their site;
    wget http://dl.suckless.org/dl/dwm/dwm-5.8.2.tar.gz
    cd /path/to/dwm-5.8.2.tar.gz
    tar zxvf dwm-5.8.2.tar.gz
    make clean install (as root)
    cp config.def.h config.h
    tweak config.h then;
    make clean install (as root)
    Because you're not using a package manager and you don't want to clutter your /usr/bin directory, you could try not "installing" it at all.
    Just type make not as root, it will put the binary in the current directory (the source directory)
    then after you set up your own ~/bin directory (mkdir ~/bin and adjust your PATH variable in .bashrc: PATH=~/bin:$PATH) symlink the binary to a place you can launch it:
    ln -sf $PWD/dwm ~/bin
    You could even forgo those last two steps, and every time you want to run dwm (which is probably only in .xinitrc), just put the source directory and binary name:
    ~/dwm-1.2.3/dwm &

  • Xmonad problems?

    I am trying to learn and use xmonad. I have tried Thayer's config and Button's config and both get errors while loading. With Thayer's I get a "Could not find module `XMonad.Actions.FlexibleResize':" and with Buttons it is something about the XMonad.Stackset module. I haven't been able to get dzen2 to do anything but I am still playing with that.
    I thought I installed everything so I am not sure what those errors are.

    Ok.
    EDIT: hehe.. being a bit fast here.. X11-1.4.0 is in the community repo. Get it with pacman -Sy and try again..
    As a temporary workaround you could compile xmonad-contrib-0.5 yourself and follow the instructions in the README file. Then add ~/bin and ~/lib to your .bashrc path. Its really easy to compile. Download, untar and read the README. Then copy/paste the compilation commands and execute them one by one and add the above paths to your .bashrc.
    That's what I did.
    You can find it here:
    http://hackage.haskell.org/packages/arc … 0.5.tar.gz
    Hey, but you still need the X-11 lib. Get it here and follow the same instructions.
    http://hackage.haskell.org/packages/arc … 4.0.tar.gz
    Last edited by Ashren (2007-12-11 15:17:29)

  • Smart desktop working tips

    So, this thread is not about screenshots (for a change) but about becoming a more productive desktop user. Special tools, tips and tricks you use to make your life easier.
    This does not have to be DE/WM specific.
    I'll start:
    (I never paid too much attention to this until someone I work with brought it up)
    There are a lot of applications we use all the time. Most of us are probably more in favour of the "run command" window than actual point-and-click. So, instead of typing something long in that window (eg `konqueror`), why not typing something short (eg `kq`)?
    What we do is create a Shourtcuts directory in our home dir, using those short-form symlinks/scripts and add it to the our PATH through the .bashrc file, or some other startup script.
    Now for a tool:
    yakuake - most of you probably know this already. For those who don't, this is a drop-down terminal emulator, Quake style. The application is KDE based.
    You can configure its shourtcut keys, I configured them using Alt+arrow keys.
    Alt+UP - new tab
    Alt+DOWN - close tab
    Alt+RIGHT - move right
    Alt+LEFT - move left
    Nice and fast to work with.
    So, what other tips/tools can you share?

    Well... as a KDE user I can tell you about some things I find really usefull.
    1. Amarok's global shortcuts. Either there are Win+Z/X/C/V/B (for controlling playback) or Win+P (for playlist). As I listen to music 95% of the time I'm sitting near my computer, this is immensely usefull.
    2. Alt+F2. This is huge.  Great for everything, especially when you learn the power of kioslaves (locate: or man: or fish:// or... user defined web shortcuts, read below)
    3. Configuring your own global shortcuts. For me this included:
    Win+F1 for my main Konqueror browsing window
    Win+Tab for switching between tasks (the same thing you get when mid-clicking the desktop). This is really usefull, especially that you can switch tasks with arrow keys.
    Win+E shortcut to konsole window on a separate desktop. I have a big almost whole-screen session opened on desktop 4.
    4. Learning shortcuts in your browser (or defining them).
    Ctrl-L focus on location bar
    Ctrl-K focus on search engine bar (with ctrl-up/down arrows switch between them)
    5. Mouse scroll switching desktops. I have a strip of 5 pixels on the right of the screen where I can always move over and switch desktops. On all desktops I keep it clear, so that I can do this trick. On one of them, 5 pixels from the right is the main window of my IM client. So wheneven I want to switch to it I just point at the place where its supposed to be and scroll like mad
    6. Web shortcuts. These are one of the best things in KDE. Alt-F2 can handle them, Konquerors location bar can do them. I can't live without it.

Maybe you are looking for

  • How do I show my available meeting times in iCal using iCloud?

    Currently, my "Available Meeting Times" are grayed out every day, including the invitees for an event when viewing via the Availability Panel on iCal 5.x (Lion) and also on iCal 6.x (Mountain Lion). Anyone have any advice? Thanks!

  • Using video chat feature with Pc's

    I own a macbook but several people I know have various types of Pc's with built in webcams. What type of instant messenger for pc's will allow them to video chat with me on my mac that does not require me to download any additoinal software? please h

  • Get Open Items for GL Reconciliation account for Customers

    Hi All We have a difference on our AR to GL reconciliation, we are unable to view all postings to the GL account using Tcodes FBL3N or FS10N ?  - the function is not available on that GL account. how do we compare the open items on customer accounts

  • Safari 7.1 crashes on focus of input field

    Does anyone know what might be causing this crash? Here is the crash report Process:         com.apple.WebKit.WebContent [4839] Path:            /System/Library/StagedFrameworks/Safari/WebKit.framework/Versions/A/XPCServices /com.apple.WebKit.WebCont

  • [Solved] Macbook Pro 9.2 Wireless issues

    I have been going through old posts trying to get my wireless installed. I downloaded compat-wireless and the b43 firmware. Any ideas or suggestions would be greatly appreciated. [blankwall@blankwall Downloads]$ iwconfig enp1s0f0  no wireless extensi