Re: [Emc-users] Problems Compiling/Running - Update

2008-04-08 Thread Jeff Epler
On Mon, Oct 29, 2007 at 07:18:08AM -0500, Jeff Epler wrote: EMC 2.1.x is unlikely to work on Ubuntu 7.10. However, the development version has been improved in various ways for compatability with newer versions of Ubuntu. On Ubuntu 7.10 the default amount of locked memory for regular users

Re: [Emc-users] Problems Compiling/Running - Update

2008-04-08 Thread Andrew Ayre
Jeff Epler wrote: On Mon, Oct 29, 2007 at 07:18:08AM -0500, Jeff Epler wrote: EMC 2.1.x is unlikely to work on Ubuntu 7.10. However, the development version has been improved in various ways for compatability with newer versions of Ubuntu. On Ubuntu 7.10 the default amount of locked memory

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-03 Thread Andrew Ayre
kernel latency test. If I am not then the RTAI test suite deletes /dev/rtf3 and then complains that it is missing. Andy Original Message Subject: Re: [Emc-users] Problems Compiling/Running - Update Date: Fri, 02 Nov 2007 12:45:13 -0700 From: Andrew Ayre [EMAIL PROTECTED] To: Enhanced

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread John Kasunich
Andrew Ayre wrote: Alex, Sorry, yes, I ran all the commands as root. Constantly typing in sudo annoys me so I enable the root account. Old skool perhaps... I think that running make as root results in all the binaries and other generated files being owned by root. The intended method is

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread Andrew Ayre
Thanks for the suggestion. I gave it a try: ./configure make sudo make install I then ran the script to create the devices. Unfortunately halcmd help still segfaults for a non-root user. Any ideas? Andy John Kasunich wrote: Andrew Ayre wrote: Alex, Sorry, yes, I ran all the commands

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread John Kasunich
Andrew Ayre wrote: Thanks for the suggestion. I gave it a try: ./configure make sudo make install I then ran the script to create the devices. Unfortunately halcmd help still segfaults for a non-root user. Any ideas? Try the run-in-place method: (from the top of your checkout)

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread Alex Joni
for run-in-place you need scripts/realtime start Regards, Alex - Original Message - From: Andrew Ayre [EMAIL PROTECTED] To: Enhanced Machine Controller (EMC) emc-users@lists.sourceforge.net Sent: Friday, November 02, 2007 9:11 PM Subject: Re: [Emc-users] Problems Compiling/Running

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread Andrew Ayre
Here is what I get: [EMAIL PROTECTED]:~/Desktop/emc2/emc2cvshead$ halcmd help RTAPI: ERROR: could not open shared memory (errno=19) HAL: ERROR: rtapi init failed halcmd: hal_init() failed: -9 NOTE: 'rtapi' kernel module must be loaded I'm

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-02 Thread Andrew Ayre
@lists.sourceforge.net Sent: Friday, November 02, 2007 9:11 PM Subject: Re: [Emc-users] Problems Compiling/Running - Update Here is what I get: [EMAIL PROTECTED]:~/Desktop/emc2/emc2cvshead$ halcmd help RTAPI: ERROR: could not open shared memory (errno=19) HAL

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-01 Thread Jeff Epler
The following emc2.rules file, which is installed when you install a .deb of emc2 (but not by 'make install), makes the rtai_shm device accessible to all users: ~/emc2-src/debian/extras-Ubuntu-6.06/etc/udev/rules.d$ cat emc2.rules KERNEL==RTAI_SHM SYMLINK==rtai_shm MODE=0666 Jeff

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-01 Thread Alex Joni
On Thu, 2007-11-01 at 12:18 -0700, Andrew Ayre wrote: Another thought - does permissions need to be set on a file somewhere to allow the shared memory to work for all users? I did: ./configure options make make install I didn't run make setuid. Is that still needed for a make install?

Re: [Emc-users] Problems Compiling/Running - Update

2007-11-01 Thread Andrew Ayre
Alex, Sorry, yes, I ran all the commands as root. Constantly typing in sudo annoys me so I enable the root account. Old skool perhaps... Andy Alex Joni wrote: On Thu, 2007-11-01 at 12:18 -0700, Andrew Ayre wrote: Another thought - does permissions need to be set on a file somewhere to allow

Re: [Emc-users] Problems Compiling/Running - Update

2007-10-29 Thread Jeff Epler
EMC 2.1.x is unlikely to work on Ubuntu 7.10. However, the development version has been improved in various ways for compatability with newer versions of Ubuntu. On Ubuntu 7.10 the default amount of locked memory for regular users is too low. You can fix that problem by adding the line hard

Re: [Emc-users] Problems Compiling/Running - Update

2007-10-29 Thread Andrew Ayre
Jeff, Thanks - I will give that a try. I think a shared memory error was in the mix. I also need to manually create the application menu entries. /usr/local/bin/emc is obvious. Are there any other executables that users should be able to run from the menu? Once I have this set up I will

Re: [Emc-users] Problems Compiling/Running - Update

2007-10-29 Thread Andrew Ayre
I have narrowed the problem down to this: [EMAIL PROTECTED]:~$ /usr/local/bin/halcmd help Segmentation fault [EMAIL PROTECTED]:~$ su Password: [EMAIL PROTECTED]:/home/andy# /usr/local/bin/halcmd help Use 'help command' for more details about each command Available commands: loadrt

Re: [Emc-users] Problems Compiling/Running - Update

2007-10-29 Thread Jeff Epler
A system call trace (produced by using strace) or a backtrace at the time of the segmentation fault (produced using gdb) would be helpful in pinpointing the location of the problem. You can find information how to use these utilities on many pages on the internet. Jeff

Re: [Emc-users] Problems Compiling/Running - Update

2007-10-29 Thread Andrew Ayre
Thanks. It seg faults at line 2350 in hal_lib.c: static int init_hal_data(void) { /* has the block already been initialized? */ if (hal_data-version != 0) { It appears that hal_data is NULL at this point. Here is the call stack: hal/utils/halcmd_main.c:195 (main) hal/utils/halcmd.c:109

[Emc-users] Problems Compiling/Running - Update

2007-10-28 Thread Andrew Ayre
Update - I can get EMC2 CVS HEAD to start up with no errors if I start it as root. Otherwise it fails at the insmod stage. I guess regular users don't have permission to do this. So how do I solve this problem? thanks for the help! Andy Original Message Subject: Problems