LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2011, 10:48 PM   #1
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,207

Rep: Reputation: 63
Executable won't run in /usr/bin


I have a small channel changing script for mythtv that someone else wrote in C. I compiled the executable in /opt. I then copied the executable to /usr/bin. The executable will run correctly with the following command:

Code:
/opt/./channelchange
but fails to run with this command:

Code:
channelchange
When I use the command "channelchange" without the full path, it fails with the following errors:

Code:
rom1394_0 warning: read failed: 0x0000fffff0000414
ERROR reading config rom directory for node 0
Any explanation as to why this would happen?
 
Old 12-13-2011, 02:13 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
it looks like you hardcoded something into it
the paths to something in that build folder

posting the build line you used would help .

i am guessing that that "config rom directory" is in that /opt/?/? build folder
 
Old 12-13-2011, 09:20 AM   #3
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,207

Original Poster
Rep: Reputation: 63
The source code can be found here: http://ubuntuforums.org/showthread.php?t=712789

The code was modified for the model sa4250hdc cable box as described in the link. This is a firewire channel changer for the set top box. I am using an expansion card that has two firewire ports on it. When I run "/opt/./channelchanger -v" I get output similar to this:
Code:
node 0: vendor_id = 0x00001106 model_id = 0x00000000
node 1: vendor_id = 0x00001ac3 model_id = 0x000010cc
Device acquired on node 1
Changing channel 708
I am assuming that the two nodes are the two firewire ports. The device is on node 1 and I used that vendor_id and model_id in the code. The error message refers to node 0, which I am assuming is the other port that has nothing connected to it. I don't understand why the executable throws out that error message when running without the full path. I don't think that there is anything in the code referring to the path, but I don't speak C language.
 
Old 12-14-2011, 10:18 AM   #4
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,207

Original Poster
Rep: Reputation: 63
Well, I ended up just configuring mythtv to use the full command "/opt/./channelchange". It works. Still not sure why the executable in /usr/bin fails to work, but I can live with that mystery.
 
  


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
Executable removed from /usr/bin on restart. Rob001 Linux - Newbie 2 10-15-2009 09:11 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 09:33 AM
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 01:08 AM
suse 9.2 - /usr/bin/[ Executable - what is this? nathanv117 SUSE / openSUSE 3 01-23-2005 10:20 AM
Webmin: The Apache server executable /usr/local/apache2/bin does not exist hektor Linux - Software 0 01-14-2005 07:48 AM


All times are GMT -5. The time now is 07:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration