LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-23-2003, 04:39 PM   #1
boogerman
LQ Newbie
 
Registered: Nov 2003
Distribution: mandrake 9.0
Posts: 4

Rep: Reputation: 0
Unhappy need help running a program


i installed xirc with no problems but when i type "xirc" at the terminal I get a "command not found" message. I installed AIM the same way and it runs fine if I type AIM at a command line. HOW DO I GET IT TO WORK! It took 2 days to get it to install (had to get lib files, etc, installed first) and now I cant figure out how to run it. HELP!
 
Old 11-23-2003, 04:41 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

The directory you installed it into probably isn't in your path.

To get round it - symlink the executable to a location in your path - eg:
ln -s /usr/local/xirc/bin/xirc /usr/local/bin/
 
Old 11-23-2003, 05:07 PM   #3
boogerman
LQ Newbie
 
Registered: Nov 2003
Distribution: mandrake 9.0
Posts: 4

Original Poster
Rep: Reputation: 0
It still says command not found though I did link it. The executable was in a different folder so I didnt know which to run the command on thus I did it on both folders. . heres what I did.

[rexx@localhost rexx]$ su
Password:
[root@localhost rexx]# ln -s /usr/local/bin/xirc /sr/local/bin
ln: creating symbolic link `/sr/local/bin' to `/usr/local/bin/xirc': No such file or directory
[root@localhost rexx]# ln -s /usr/local/lib/xirc /usr/local/bin
[root@localhost rexx]# xirc
bash: xirc: command not found
[root@localhost rexx]# ln -s /usr/local/bin/xirc /usr/local/bin
ln: `/usr/local/bin/xirc': File exists
[root@localhost rexx]# xirc
bash: xirc: command not found
[root@localhost rexx]# cd..
[root@localhost home]# xirc
bash: xirc: command not found

What now? I can uninstall it and try again? or what?
 
Old 11-23-2003, 05:23 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
There is no need to uninstall - what does your path look like:
echo $PATH
 
Old 11-23-2003, 06:06 PM   #5
boogerman
LQ Newbie
 
Registered: Nov 2003
Distribution: mandrake 9.0
Posts: 4

Original Poster
Rep: Reputation: 0
aim-1.5.286-1.i386.rpm libstdc++-2.96-85.2mlx.i386.rpm
Desktop source-highlight-1.7-1mdk.src.rpm
Documents tmp
gcc-2.95.2-1i.src.rpm.part xIrc-2.3.8-1.i386.rpm
libpng2-1.0.9-1mdk.i586.rpm zircon
libqt2-2.3.1-29mdk.i586.rpm
[root@localhost rexx]# cd..
[root@localhost home]# dir
rexx
[root@localhost home]# cd..
[root@localhost /]# dir
bin dev home lib opt root tmp var
boot etc initrd mnt proc sbin usr
[root@localhost /]# cd /usr
[root@localhost usr]# cd/local
bash: cd/local: No such file or directory
[root@localhost usr]# cd /local
bash: cd: /local: No such file or directory
[root@localhost usr]# dir
bin etc games include lib local sbin share src tmp X11R6
[root@localhost usr]# cd local
[root@localhost local]# cd bin
[root@localhost bin]# dir
xirc xIrc
[root@localhost bin]# cd xirc
bash: cd: xirc: No such file or directory
[root@localhost bin]# xirc
bash: xirc: command not found
[root@localhost bin]# dir
xirc xIrc
[root@localhost bin]# cd xIrc
bash: cd: xIrc: Not a directory
[root@localhost bin]# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
[root@localhost bin]#
[
Here is the path from the directory it is in
Now what? Thx for yer time
 
Old 11-23-2003, 06:14 PM   #6
netboy_541
Member
 
Registered: Jul 2003
Location: Hamilton, OH
Distribution: Redhat 9, SuSE 10.1 & 10.2, Kubuntu
Posts: 173

Rep: Reputation: 30
boogerman -- sounds like APT-GET would be your best friend.

you can snag that from www.freshrpms.net

gets you out of dependency hell... downloads all the goods for it.. install it, the whole nine yards..
 
Old 11-23-2003, 08:59 PM   #7
boogerman
LQ Newbie
 
Registered: Nov 2003
Distribution: mandrake 9.0
Posts: 4

Original Poster
Rep: Reputation: 0
but i have mandrake 9.0 will it work for me
 
Old 11-23-2003, 09:25 PM   #8
netboy_541
Member
 
Registered: Jul 2003
Location: Hamilton, OH
Distribution: Redhat 9, SuSE 10.1 & 10.2, Kubuntu
Posts: 173

Rep: Reputation: 30
that's one i don't know about... maybe i should learn to read what o/s you are running .. lol
 
Old 11-24-2003, 02:17 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I just noticed that you missed the trailing slash on the ln command.
 
  


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
Running a program LinAck Linux - Newbie 1 07-02-2005 02:17 AM
running a program from within QT kooshball Programming 4 06-14-2005 05:08 PM
Running a program rj686 Linux - Software 16 10-10-2004 07:19 PM
Running a new program bananaman Linux - Newbie 4 04-08-2003 04:00 PM
Running a C program isaacais Linux - Newbie 3 12-11-2002 02:22 PM

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

All times are GMT -5. The time now is 06:01 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