issues with cio dio24h board

More
17 Aug 2011 22:19 #12555 by btvpimill
I am also VERY new to this, but maybe you need to do this:

sudo comp --install pcl720.comp

Notice the difference is comp instead of c for the extension.

Now I am really just trying to see if I know something or not. I am sure one of the guru's will chime in and set us straight.

For the rest (where to find ??) I am finding by reading threads I find wonderful links in them. This forum has IMHO the best help around.

Please Log in or Create an account to join the conversation.

More
17 Aug 2011 22:22 #12556 by BigJohnT
I'm pretty sure comp only compiles .comp files, but I've been wrong before. Have you viewed the man page for comp?

John

Please Log in or Create an account to join the conversation.

More
17 Aug 2011 22:35 #12557 by patburden
yes I read it I tried the .comp but it acted like it could'nt find it

mill-desktop:~$ sudo comp --install pcl720.comp
[sudo] password for mill:
Traceback (most recent call last):
File "/usr/bin/comp", line 1297, in <module>
main()
File "/usr/bin/comp", line 1266, in main
process(f, mode, outfile)
File "/usr/bin/comp", line 1140, in process
a, b = parse(filename)
File "/usr/bin/comp", line 386, in parse
f = open(filename).read()
IOError: [Errno 2] No such file or directory: 'pcl720.comp'

it kinda ran "home to momma" and read a file called comp
so I tried the .c and got what you see above

Please Log in or Create an account to join the conversation.

More
17 Aug 2011 22:39 - 17 Aug 2011 22:40 #12558 by btvpimill
I find it easiest to run the install command from the directory where the comp file is. Have you tried that? Or I guess include the entire path with the filename
Last edit: 17 Aug 2011 22:40 by btvpimill.

Please Log in or Create an account to join the conversation.

More
17 Aug 2011 22:44 #12559 by BigJohnT
Does your file follow the format for comp as outlined in the manual?

John

Please Log in or Create an account to join the conversation.

More
17 Aug 2011 22:48 #12560 by patburden
btvpimill wrote:

I find it easiest to run the install command from the directory where the comp file is. Have you tried that? Or I guess include the entire path with the filename



ok tried this and got something different

mill-desktop:~$ sudo comp --install /usr/bin/pcl720.comp
Traceback (most recent call last):
File "/usr/bin/comp", line 1297, in <module>
main()
File "/usr/bin/comp", line 1266, in main
process(f, mode, outfile)
File "/usr/bin/comp", line 1140, in process
a, b = parse(filename)
File "/usr/bin/comp", line 387, in parse
a, b = f.split("\n;;\n", 1)
ValueError: need more than 1 value to unpack

I think it is still reading the same file

Please Log in or Create an account to join the conversation.

More
17 Aug 2011 22:51 #12561 by btvpimill
Sorry Pat, I now become an observer. my bag of knowledge is all used up - Not too big a bag really.

@John, I think he is using the file Andy posted for him.

Please Log in or Create an account to join the conversation.

More
17 Aug 2011 22:56 #12562 by BigJohnT
Your comp file should not be in the upper directories but rather in your home directory or below so super user rights are not needed... Comp will install the successful file in the proper place...

John

Please Log in or Create an account to join the conversation.

More
17 Aug 2011 23:02 - 17 Aug 2011 23:08 #12563 by patburden
btvpimill wrote:

Sorry Pat, I now become an observer. my bag of knowledge is all used up


Thanks anyway this is a real learning experience for me.
THANKS

I think I better spend a few hours learning basic linux commands
Last edit: 17 Aug 2011 23:08 by BigJohnT. Reason: fix quote

Please Log in or Create an account to join the conversation.

More
17 Aug 2011 23:04 #12564 by BigJohnT
Can you copy one of the example comps from the manual to a directory and get that to compile?

www.linuxcnc.org/docview/html/hal_comp.html

John

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.115 seconds
Powered by Kunena Forum