Trouble embedding Nativecam

More
01 Aug 2017 17:35 #96847 by skrap58
This is my first post so please let me know if I need to change or add anything.

I have linuxcnc 2.7.9 running on debian wheezy. Ihave used the script ncam_debsetup.txt to install NativeCAM and the locate command shows it is indeed downloaded

bill@cncpc:~$ locate ncam
/home/bill/linuxcnc/ncam_debsetup.txt
/usr/share/linuxcnc/aux_examples/NativeCAM/2.7/axis/ncam.ui
/usr/share/linuxcnc/aux_examples/NativeCAM/2.7/gmoccapy/ncam.ui
/usr/share/linuxcnc/aux_examples/NativeCAM/2.8/axis/ncam.ui
/usr/share/linuxcnc/aux_examples/NativeCAM/2.8/gmoccapy/ncam.ui
/usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.glade
/usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.py
/usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam.ui
/usr/share/linuxcnc/aux_gladevcp/NativeCAM/ncam_pref.glade
/usr/share/man/man1/ncam.1.gz
bill@cncpc:~$

It seems I need to move theses files to /home/bill/linuxcnc but I am not sure exactly which file to move.
I have tried to follow instructions in readme.md file and the results are below

bill@cncpc:~$ ncam -i my-mill.ini -t -c mill
bash: ncam: command not found

Please point me in the correct direction.

Bill

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

More
02 Aug 2017 13:21 #96900 by jmmontes
Hi,
While Fern is back have a look at NativeCam is Features Renamed in O Codes (Subroutines) cathegory.
Jmmontes

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

More
02 Aug 2017 19:32 #96932 by rodw
Replied by rodw on topic Trouble embedding Nativecam
You probably just need to provide the full path to ncam in this line
bill@cncpc:~$ ncam -i my-mill.ini -t -c mill

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

More
02 Aug 2017 21:07 - 02 Aug 2017 21:11 #96946 by dgarrett
Deb installs (like nativecam) typically put required executables
in a system directory (usually /usr/bin) so that they are available
to all users with a standard PATH setting in their environment.
Full path names are seldom required for such executables.

You can run some shell commands to see if the deb is installed correctly.
For example:
$ dpkg -l nativecam # Check if pkg is installed (-l (letter) not -1 (one))
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name       Version  Architecture Description
+++-==========-========-============-=================================
ii  nativecam  0.1.6    all          Conversational programming for Li

$ dpkg -L nativecam|grep bin # List all files with bin in name
/usr/bin
/usr/bin/nativecam
/usr/bin/ncam

$ which ncam # Check if ncam is in your PATH
/usr/bin/ncam

$ ls -lL $(which ncam) # Verify x bits (-l -L)
-rwxr-xr-x 1 root root 185795 Jul 16 20:31 /usr/bin/ncam

$ ncam -h  # Test if it is there using just -h
Standalone Usage:
   ncam [Options]

Options :
...

The standard PATH almost always includes /usr/bin
$ echo $PATH
Last edit: 02 Aug 2017 21:11 by dgarrett.
The following user(s) said Thank You: skrap58

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

Time to create page: 0.111 seconds
Powered by Kunena Forum