I tried the sudo chown. Not sure what you meant by "the one with .git in it", I did it from the directory above the src.
I got some errors and redid ./configure --with-realtime=uspace "make" did a lot of stuff, but ended with: Linking python module gcode.so g++ -L/home/atxhacker/linuxcnc-2.7.4/lib -Wl,-rpath,/home/atxhacker/linuxcnc-2.7.4/lib -shared -o ../lib/python/gcode.so objects/emc/rs274ngc/gcodemodule.o ../lib/librs274.so.0 -lstdc++ Linking ../rtlib/abs.so ld: no input files make: *** [../rtlib/abs.so] Error 1 then I did "sudo make setuid" hal/user_comps/vfdb_vfd/Submakefile:11: warning: overriding commands for target `../bin/vfdb_vfd' hal/user_comps/vfdb_vfd/Submakefile:11: warning: ignoring old commands for target `../bin/vfdb_vfd' chown root ../bin/rtapi_app chmod 4750 ../bin/rtapi_app source ../scripts/rip-environment This script only needs to be run once per shell session. type "linuxcnc" , loads, lets me select a HAL file, then: LINUXCNC - 2.7.4 Machine configuration directory is '/home/atxhacker/linuxcnc/configs' Machine configuration file is '7i92_spid.ini' Starting LinuxCNC... inifile: warning: File contains DOS-style line endings. emc/iotask/ioControl.cc 768: can't load tool table. Found file(REL): ./7i92_spid.hal hal_lib: dlopen: /home/atxhacker/linuxcnc-2.7.4/rtlib/hal_lib.so: cannot open shared object file: No such file or directory Note: Using POSIX realtime gantrykins: dlopen: /home/atxhacker/linuxcnc-2.7.4/rtlib/gantrykins.so: cannot open shared object file: No such file or directory ./7i92_spid.hal:31: waitpid failed /home/atxhacker/linuxcnc-2.7.4/bin/rtapi_app gantrykins ./7i92_spid.hal:31: /home/atxhacker/linuxcnc-2.7.4/bin/rtapi_app exited without becoming ready ./7i92_spid.hal:31: insmod for gantrykins failed, returned -1 Shutting down and cleaning up LinuxCNC... hal_lib: dlopen: /home/atxhacker/linuxcnc-2.7.4/rtlib/hal_lib.so: cannot open shared object file: No such file or directory Note: Using POSIX realtime LinuxCNC terminated with an error. You can find more information in the log: /home/atxhacker/linuxcnc_debug.txt and /home/atxhacker/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal Danny ---- Sebastian Kuzminsky <s...@highlab.com> wrote: > 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 ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users