PDA

View Full Version : Bash Profile Sample



07dcolem
27th November 2004, 01:48 AM
Could a few of you (experienced) users post your /.bash_profile so i can see how somethings work......thank you!

Dog-One
27th November 2004, 02:55 AM
Just the generic one here:
# .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 USERNAMENot sure how useful it will be to you though.

07dcolem
27th November 2004, 04:31 AM
i'm trying to figure out how to make gcc my default compiler and im told you can do it in bash??

crackers
27th November 2004, 07:27 AM
GCC should already be the "default" (only) compiler. Open up a terminal and type "cc --version" - you should see something like this:


$ cc --version
cc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

07dcolem
27th November 2004, 02:36 PM
yes that is what comes up in the terminal but my nvidia installation still doesn't think it exists.....what should i do? I dont understand this!

dishawjp
29th November 2004, 03:04 AM
Are you running FC1? If I remember correctly there was an issue back then where the kernel was complied with a different version of gcc than the rest of the distro. The command to use the older gcc version was:

export GCC=gcc32

I'm pretty sure that was the issue, but it's been a while. Google your version of FC with something like

FC? nvidia export gcc=

where FC? would be FC1 or FC2 depending on your version. You'll get the information you need.

07dcolem
29th November 2004, 03:10 AM
actually im running 3 :)