LinuxQuestions.org
Visit Jeremy's Blog.
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 01-21-2005, 03:01 AM   #1
dmorrell
LQ Newbie
 
Registered: Jan 2005
Location: Adelaide South Australia
Distribution: FC4
Posts: 6

Rep: Reputation: 0
Command Not Found But I See It!!


I have searched for an answer but no luck, so it's time to pop the question.

Running Fedora Core 3 with SELinux enabled. Logged on as root.

Installed Civilisation Call to Power - a game ported from Windows by Loki in 1999.

Can see the supposed executable called civctp but get "command not found" when I try to run it in a terminal window using BASH.

I have confirmed that the file is marked as executable and that I have execute permission (chmod 777).

The installation was from the manufacturer's CD. No compiling from source was involved.

Huh!?
 
Old 01-21-2005, 03:11 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,194
Blog Entries: 1

Rep: Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056
Try to run it as:
Code:
./civctp
 
Old 01-21-2005, 03:23 AM   #3
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 31
Check that the binary is in your PATH. Else, execute directly with /path/to/command.
 
Old 01-21-2005, 06:32 PM   #4
dmorrell
LQ Newbie
 
Registered: Jan 2005
Location: Adelaide South Australia
Distribution: FC4
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks to the 2 people who have replied so quickly.

I have tried running it directly from within the folder where it lives, but no result. Still reports 'command not found'.

It may be relevant that the 'which' command fails to find it i.e. which civctp.

I dont' understand the suggestion to run it as CODE civctp. Can you please explain further?

Thanks.
 
Old 01-21-2005, 06:53 PM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
If you're cd'ing to the directory you need the ./ in front of civctp

./civctp

or you can do it like this

/path/to/civctp
 
Old 01-21-2005, 07:00 PM   #6
dmorrell
LQ Newbie
 
Registered: Jan 2005
Location: Adelaide South Australia
Distribution: FC4
Posts: 6

Original Poster
Rep: Reputation: 0
Now we're getting somewhere. At least it seems to try and run, but then trips over its own feet.

[dmorrell@localhost ~]$ cd /usr/local/games/CivCTP/
[dmorrell@localhost CivCTP]$ ./civctp
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
Killed

This occurs when I run it as root from BASH outside of KDE, or when I run it as a normal user (above) from a BASH terminal window inside KDE.

So, who's got the next grain of wisdom to lead me along the trail to playing Civ Call to Power on Linux? This is a precondition to keeping the family peace if I finally dump Windows....
 
Old 01-21-2005, 07:12 PM   #7
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
try installing SDL, its a graphics library, like DirectX.

http://www.libsdl.org/index.php
 
Old 01-21-2005, 07:34 PM   #8
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
By the way, in answer to your implied question earlier, "code" is just a word that prefaces text offset from the rest of a reply by way of making it look more like terminal readout, script, or other text separate from but related to the reply. You can find it among the HTML options when you post.
 
Old 01-22-2005, 01:12 PM   #9
dmorrell
LQ Newbie
 
Registered: Jan 2005
Location: Adelaide South Australia
Distribution: FC4
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the suggestion re SDL. It's pretty black and white when you get to the site. Posting this here for anyone else reading the thread who might wish to know.

"Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power."
 
  


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 murshed Linux - Newbie 8 11-22-2007 04:51 AM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
command not found ginda Linux - General 3 07-16-2005 04:15 PM
Command not found nfis Linux - Software 9 11-25-2003 11:00 PM
command not found jkp Linux - Newbie 3 01-21-2003 02:26 PM

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

All times are GMT -5. The time now is 03:34 AM.

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