image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old March 3rd, 2003, 11:01 AM
Paul Forbes's Avatar
Registered User
 
Join Date: Jan 2003
Location: London
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Paul Forbes is on a distinguished road
How do I run apps in X11?

Hi all,
I know very little about unix but want to learn stuff. So I have Apple’s X11 Public Beta v0.2.1 on Jaguar 10.2.4 and it works fine. I’ve now installed Fink Commander and that seems to be working okay except when I download programs with Fink and try and run them from the X11 terminal (by going to the correct path and typing the program name) it says something like “command unknown”. What am I doing wrong? I’ve tried some very basic programs like a calculator and a game called “3dpong” and they all say the same error.
Thanks.
- Paul
__________________
Visit www.phibernet.co.uk
Reply With Quote
  #2  
Old March 3rd, 2003, 02:40 PM
Darkshadow's Avatar
wandering shadow
 
Join Date: Jul 2001
Location: DE, USA
Posts: 1,532
Thanks: 0
Thanked 0 Times in 0 Posts
Darkshadow is on a distinguished road
You need to add the path to your PATH environment variable. If you just go to the path and then try to type the name, it won't work, because your PATH doesn't include that path.

If you're using the default tcsh shell, type setenv PATH="${PATH}: path_where_programs_are" (sorry, I don't use Fink, so I don't know where they're installed).

Edit: I had to put a space between the : and the p because it showed a smiley - don't put that space when you type that.

You'll have to do that every time you make a new window in Terminal unless you add that to your login script - I don't use tcsh, so I'm not sure of the file, hopefully someone else can tell you that one.

Alternatively, you can go to the path, and type ./program_name and that will start it up.
__________________
I am but a lonely shadow,
Doomed forever to roam and wander.
But if you allow me to pause before I must go,
I'll spin you tales of mystery and wonder.


Site: Night Productions
Reply With Quote
  #3  
Old March 4th, 2003, 04:08 AM
Registered User
 
Join Date: Feb 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
randomdude is on a distinguished road
If fink is installed correctly, and you're using the tcsh shell, you should add the following line to the file .cshrc in your home directory:

source /sw/bin/init.csh

You could check to make sure the file is there by
typing

ls /sw/bin/init.csh

at the tcsh prompt -- you should just see the filename repeated. Now when you create a new
terminal, your fink programs should be recognized.
Reply With Quote
  #4  
Old March 4th, 2003, 04:49 AM
Paul Forbes's Avatar
Registered User
 
Join Date: Jan 2003
Location: London
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Paul Forbes is on a distinguished road
Thanks Darkshadow & randomdude. I'll try it all tonight and let you know how I get on (because I bet there'll be more questions after I get that working!)
- Paul
__________________
Visit www.phibernet.co.uk
Reply With Quote
  #5  
Old March 5th, 2003, 03:03 AM
Paul Forbes's Avatar
Registered User
 
Join Date: Jan 2003
Location: London
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Paul Forbes is on a distinguished road
I edited my .cshrc as suggested and everything is working. Thanks again Darkshadow & randomdude. One other thing: what does .cshrc and .xinitrc stand for (if anything).
__________________
Visit www.phibernet.co.uk
Reply With Quote
  #6  
Old March 5th, 2003, 10:11 AM
Registered User
 
Join Date: Feb 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
randomdude is on a distinguished road
Paul -
The abbreviation "rc" stands for "run commands", and is often used in the UNIX world as the last two letters of a file of commands to be run each time a program starts. The commands in .cshrc are run each time you run csh (the default shell that Mac OS X uses when you open a terminal), and the .xinitrc commands are run when the X window system is initialized. Not all programs use the "rc" convention though -- if you type
"ls -a" from your home directory, you'll see a bunch of startup files along with directories that some programs have created. (The -a tells ls to show all files, including ones that begin with a period, which are normally hidden.)
Reply With Quote
  #7  
Old March 5th, 2003, 01:08 PM
Paul Forbes's Avatar
Registered User
 
Join Date: Jan 2003
Location: London
Posts: 76
Thanks: 0
Thanked 0 Times in 0 Posts
Paul Forbes is on a distinguished road
Thanks randomdude!
__________________
Visit www.phibernet.co.uk
Reply With Quote
Reply

Bookmarks

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BASIC X11 Questions chief Unix & X11 9 January 12th, 2003 12:07 PM
Can't run carbon apps any more!!! lurk Mac OS X System & Mac Software 2 June 11th, 2002 12:12 AM
To those who run Jaquar and these apps.... Leonis Apple News, Rumors & Discussion 4 May 28th, 2002 06:56 PM
What do you do to run Carbon apps? rharder Mac Classic System & Software 12 August 26th, 2001 09:07 PM
X11 library wrapper for Cocoa drewangst Software Programming & Web Scripting 5 May 23rd, 2001 04:04 AM


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


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright 2000-2010 DigitalCrowd, Inc.