On 03/03/2016 09:21 PM, dan...@austin.rr.com wrote:
> No joy.  I have the RT-preempt (have a 7i92 ethernet control card, 
> does not handle the modbus though).
> 
> uname -a Linux localhost 3.2.0-4-rt-686-pae #1 SMP PREEMPT RT Debian 
> 3.2.73-2+deb7u2 i686 GNU/Linux

Great, this helps illuminate your situation.


> Sudo was required for some of these.  Made errors without.
> 
> cd src ./configure --with-realtime=uspace ./configure: line 2025: 
> config.log: Permission denied ./configure: line 2035: config.log: 
> Permission denied

config.log is produced by the configure script.  I bet you ran configure
as root earlier and it created config.log owned by root, and now when
you try to run configure as you (non-root) it won't let you overwrite
root's config.log.

Your options are to either chown all the incorrectly root-owned files to
be owned by you (this would be my preference), or live as root in this
directory from now on.  The chown could be done like this (in the root
directory of the git checkout, the one with .git/ in it):

        sudo chown -R $(id -u).$(id -g) .


> ok.... well then... sudo ./configure --with-realtime=uspace
> 
> sudo make
> sudo make setuid
> source ../scripts/rip-environment
> which x200_vfd
> /home/atxhacker/linuxcnc-2.7.4/bin/x200_vfd

Yay, this is good!


> Applications Menu-> Linuxcnc -> select HAL file:
> ./7i92_spid.hal:313: execv(x200_vfd): No such file or directory

Ok, this won't work because the GUI menu runs in a different context
that hasn't seen your "source ../scripts/rip-environment", so it doesn't
know to look in /home/atxhacker/linuxcnc-2.7.4/bin.

You then tried this, which is the right way to go:


> cd ~/linuxcnc-2.7.4/bin
> linuxcnc -> select HAL file:
> ./7i92_spid.hal:31: execv(/home/atxhacker/linuxcnc-2.7.4/bin/rtapi_app): 
> Permission denied
> ./7i92_spid.hal:31: waitpid failed 
> /home/atxhacker/linuxcnc-2.7.4/bin/rtapi_app gantrykins

You're super close.  I bet this is probably fallout from running the
build as root up above.  If you do the chown i suggested, then this
should start working.

If it doesn't, run "ls -la
/home/atxhacker/linuxcnc-2.7.4/bin/" and paste the output into an email
and we'll figure it out.


> I did try "sudo linuxcnc", but then my HAL file isn't there, only 
> "Sample Configurations". The whole "My Configurations" tab is gone?

Right, because linuxcnc looks for My Configurations in your home
directory, and root has a different home directory than you do.  Run as
you, not as root.  Linuxcnc has setuid helpers that become root
automatically in the few places where it's needed.


-- 
Sebastian Kuzminsky

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to