LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2003, 05:47 AM   #1
t1mc00per
Member
 
Registered: Jan 2003
Location: Midlands, England
Distribution: Mandrake 9.0, Slackware 8.1
Posts: 76

Rep: Reputation: 15
Where's my .bashrc or .profile


I've just started using Slackware 8.1 and I've installed a program called CVIPTools which I need for university work. At the end of the installation script it said it couldn't update my paths and I'd have to do it manually.

So, I read the readme again and it says:
""""""""
In case you are not able to execute CVIPtools even after
successful compilation check whether the environment variables
are properly set up (see CVIPTOOLS ENVIRONMENT below). In case
they are not set, include them in the .cshrc (or .profile, or
.bashrc, or .kcshrc, depending on the type of shell you are
using) file. Note that these are set with the 'setenv' command,
examples:

setenv CVIPHOME /home/CVIPtools
setenv CVIP_IMGPATH $CVIPHOME/Images/CHAP1:$CVIPHOME/Images/COVER
""""""""

I'm using bash (I have a ~/.bash_history) but no .bashrc.

Two questions:
1: Shall I just create one myself?
2: How do I add these variables?
 
Old 03-03-2003, 06:10 AM   #2
phoeniXflame
Member
 
Registered: Feb 2003
Location: Somewhere, UK
Distribution: Slack, OpenBSD, Debian, SuSE
Posts: 189

Rep: Reputation: 30
no need to create one, just type the following in your shell ...

Code:
export CVIPHOME=/home/CVIPtools
export CVIP_IMGPATH=$CVIPHOME/Images/CHAP1:$CVIPHOME/Images/COVER
and if you need to add anymore just use the format ...

Code:
export VARNAME=/var/value
to view your currently set enviroment vars simple type "set" at a prompt

cheers

Last edited by phoeniXflame; 03-03-2003 at 06:12 AM.
 
Old 03-03-2003, 06:28 AM   #3
t1mc00per
Member
 
Registered: Jan 2003
Location: Midlands, England
Distribution: Mandrake 9.0, Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
Thanks, but I think I've got a different problem than I first thought. I reinstalled it so I could get the error message, it says:

********CVIPtools setup:********
Adding environment variables and path information...
awk: Command not found.
Error: Could not recognize your default shell
Looked for /bin/sh, /bin/ksh, /bin/csh, /bin/tcsh, /usr/local/bin/tcsh
You will need to manually edit the equivalent of your .profile or
.cshrc file

Now I know my shell is /bin/bash, yet it didn't even look here!

What is my equivalent of .profile or .cshrc? Is it the (empty) .bashrc I just created?

I really don't know what to do as the readme is little help, but I really need to use this program.
 
Old 03-03-2003, 08:32 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Well it seems to me that this program does not run under the bash shell which is extremly odd. You could possible try switching shells to one of the shells CVIPtools is looking for and then try to re-install it.
 
Old 03-03-2003, 09:11 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Fire up your Slack install CD, install gawk if you haven't already. I do believe slack creates the symlink for you to awk, if not go ahead and do it:
ln -sf /usr/bin/gawk /usr/bin/awk

Then, you can create a .profile if you'd like, or you can edit /etc/profile for everyone on the system to have that variable. Same with .bashrc you can create that as well.

FYI... Look at /bin/sh and notice where it's pointing: bash. So if you've got bash installed, then /bin/sh should execute bash.

Cool
 
Old 03-03-2003, 09:48 AM   #6
t1mc00per
Member
 
Registered: Jan 2003
Location: Midlands, England
Distribution: Mandrake 9.0, Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
Cheers MasterC! I've got a lot of info to be going on with later - I'm currently in 98 as I've got CVIPtools working in that instead (for now).

btw, it took me about half an hour getting it to work in windows because it was all messed up after installation. I think it might just be a badly made installer.
 
Old 03-03-2003, 10:35 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Let me know how things work out for ya. There are also several threads over in the Slack forum on using .bashrc and sourcing it. You should check them out as well since there is a small trick involved IIRC.

Cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/profile V.S. /etc/bashrc Takayuki Linux - General 12 05-17-2011 11:25 PM
/etc/profile vs /etc/bashrc maybbach Linux - Newbie 6 04-22-2005 09:50 AM
/etc/profile vs. /etc/bash.bashrc jbrashear Debian 3 03-11-2004 03:49 PM
RH9 bashrc and profile magnusprime Red Hat 5 09-01-2003 05:32 PM
.bashrc,profile.local Cichlid Linux - Distributions 1 01-08-2002 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration