LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-23-2006, 07:24 AM   #1
Deelk
Member
 
Registered: Mar 2006
Posts: 71

Rep: Reputation: 15
command not found error


Hi,

I'm trying to install Maya (a 3d package,which is a RPM file).I've converted it to a tgz file by using rpm2tgz.The installation went fine,without any errors,but when I type maya into a terminal to launch the app I get this error:
Code:
bash: maya: command not found
I've tried with typing Maya (capital first letter),but I get the same error.I've tried installing it using rpm -U --nodeps .... it went fine without any errors,but I get the same error when typing maya in a tyerminal.Does anyone know how to solve this?

kind regards
_deelk
 
Old 04-23-2006, 08:43 AM   #2
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
Try the command

which maya

and see where it is installed. Then make sure that path is in your bash profile's $PATH.
 
Old 04-23-2006, 08:44 AM   #3
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
Try 'apropos maya', 'which maya', or even 'find / -name maya' to look for files related to maya.
 
Old 04-23-2006, 09:07 AM   #4
Deelk
Member
 
Registered: Mar 2006
Posts: 71

Original Poster
Rep: Reputation: 15
It is installed in /usr/aw/maya7.0
In /usr/aw/maya/bin there is a ''c shell script text executable'' file named Maya7.0
What do I have to do now?Please explain it step by step,I'm pretty new to linux.

Thanx in advance
 
Old 04-23-2006, 09:44 AM   #5
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
All the places that will be searched for commands are in the PATH environment variable.
You can add a symlink in /usr/bin:

Code:
ln -s /usr/aw/maya/bin /usr/bin
Or you can add /usr/aw/maya/bin to your PATH. In the file /home/<username>/.bashrc, add:

Code:
export PATH=/usr/aw/maya/bin:$PATH
 
Old 04-23-2006, 10:34 AM   #6
Deelk
Member
 
Registered: Mar 2006
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by merchtemeagle
All the places that will be searched for commands are in the PATH environment variable.
You can add a symlink in /usr/bin:

Code:
ln -s /usr/aw/maya/bin /usr/bin
Or you can add /usr/aw/maya/bin to your PATH. In the file /home/<username>/.bashrc, add:

Code:
export PATH=/usr/aw/maya/bin:$PATH
I haven't got .bashrc in my home folder (I have show hidden fils turned on).So I'm going to try the another option.
Code:
ln -s /usr/aw/maya/bin /usr/bin
How do you type that fist character,so that one that looks like a 1?
I can't copy past.
 
Old 04-23-2006, 10:47 AM   #7
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
Quote:
Originally Posted by Deelk
I haven't got .bashrc in my home folder (I have show hidden fils turned on).So I'm going to try the another option.
You can just make one if it doesn't exist.

Quote:
Originally Posted by Deelk
Code:
ln -s /usr/aw/maya/bin /usr/bin
How do you type that fist character,so that one that looks like a 1?
I can't copy past.
It's a lowercase L.
 
Old 04-23-2006, 11:11 AM   #8
muddywaters
Member
 
Registered: May 2005
Location: Winnipeg, Canada
Distribution: mostly mepis
Posts: 427

Rep: Reputation: 30
Damn, I had a great link about this, but can't find it right now. You will need to create the hidden files in your /home directory. This link may help
http://www.dualisanoob.com/slack_102_tips.txt
best I could find at the moment.
 
Old 04-23-2006, 12:07 PM   #9
Deelk
Member
 
Registered: Mar 2006
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by merchtemeagle
You can just make one if it doesn't exist.



It's a lowercase L.
I created that file and put export PATH= bla bla in it,but it still doesn't work,I still get the same error.The second option didn't work either,I get this error if I type that command into the terminal:
Code:
ln: `/usr/bin/bin': File exists
 
Old 04-23-2006, 12:14 PM   #10
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
Ow, sorry, my mistake. That should not be 'ln -s /usr/aw/maya/bin /usr/bin' but

Code:
ln -s /usr/aw/maya/bin/maya /usr/bin/maya

Last edited by merchtemeagle; 04-23-2006 at 01:39 PM.
 
Old 04-23-2006, 01:37 PM   #11
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
Are you running (typing) 'Maya7.0' (capital 'M', '7.0' from the command line, like this:
$ Maya7.0
 
Old 04-23-2006, 02:09 PM   #12
Deelk
Member
 
Registered: Mar 2006
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by merchtemeagle
Ow, sorry, my mistake. That should not be 'ln -s /usr/aw/maya/bin /usr/bin' but

Code:
ln -s /usr/aw/maya/bin/maya /usr/bin/maya
I still get the same error.
 
Old 04-23-2006, 02:12 PM   #13
Deelk
Member
 
Registered: Mar 2006
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by celejar
Are you running (typing) 'Maya7.0' (capital 'M', '7.0' from the command line, like this:
$ Maya7.0
That's it!Sorry for starting this topic,on other distros I've tried the command was just maya.The command works,but I get a dependency error.I will firstly google a bit for the dependency problem,if I don't find a solution I will open a new topic.I want to thank you alll a bunch!This really is a great community.

Edit:
I've succesfully installed the dependency in no-time.Thanx again guys,you really helped me alot.

Last edited by Deelk; 04-23-2006 at 02:20 PM.
 
  


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
command not found error cdsnithi Linux - Software 2 07-06-2005 12:26 PM
command not found error lordshipmayhem Linux - Newbie 4 06-28-2005 09:15 PM
c++ command not found error... ? Cheka Linux - Newbie 2 01-29-2005 03:43 PM
command not found error message dcarlis Linux - Newbie 3 10-21-2004 07:30 PM
bash: command not found error ksgill Linux - Newbie 10 07-01-2003 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:09 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
Open Source Consulting | Domain Registration