Run in place?

More
07 Sep 2010 16:05 #4034 by eslavko
Run in place? was created by eslavko
Hello...
I just try to make new development version of emc2 on my computer.

as many times before I do:

git clone git://git.linuxcnc.org/git/emc2.git emc2-dev

cd emc2-dev
cd src
./autogen.sh
./configure --enable-run-in-place
make
sudo make setuid
cd ..
emc

and try to run my configuration.
The program report error and here is log.
In the 1'st line is something that seems wrong. I (think) I compile with run in place !
(I use 2.5.0~pre in same computer without problems) - Linux Hardy!



Print file information:
RUN_IN_PLACE=no
EMC2_DIR=
EMC2_BIN_DIR=/usr/bin
EMC2_TCL_DIR=/usr/share/emc/tcl
EMC2_SCRIPT_DIR=
EMC2_RTLIB_DIR=/usr/realtime-2.6.24-16-rtai/modules/emc2
EMC2_CONFIG_DIR=
EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
EMC2_EMCSH=/usr/bin/wish8.4
EMC2 - 2.4.3
Machine configuration directory is '/home/slavko/emc2/configs/tester'
Machine configuration file is 'tester.ini'
INIFILE=/home/slavko/emc2/configs/tester/tester.ini
PARAMETER_FILE=stepper.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
HALUI=halui
DISPLAY=axis
NML_FILE=emc.nml
Starting EMC2...
Starting EMC2 server program: emcsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting EMC2 IO program: io
Starting HAL User Interface program: halui
Starting EMC2 TASK program: milltask
Starting EMC2 DISPLAY program: axis
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=5873
Killing task milltask, PID=5996
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Traceback (most recent call last):
File "/usr/bin/axis", line 55, in <module>
from rs274.interpret import StatMixin
ImportError: cannot import name StatMixin
5873
PID TTY STAT TIME COMMAND
5996
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 395.838657] I-pipe: Domain RTAI registered.
[ 395.838671] RTAI[hal]: <3.6.1> mounted over IPIPE-NOTHREADS 2.0-04.
[ 395.838674] RTAI[hal]: compiled with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3).
[ 395.838680] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 395.838683] PIPELINE layers:
[ 395.838686] dcc15000 9ac15d93 RTAI 200
[ 395.838688] c0383180 0 Linux 100
[ 395.856223] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 395.856832] RTAI[sched]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 395.856838] RTAI[sched]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing: periodic; linear timed lists.
[ 395.856842] RTAI[sched]: Linux timer freq = 250 (Hz), CPU freq = 2120175000 hz.
[ 395.856845] RTAI[sched]: timer setup = 2010 ns, resched latency = 2688 ns.
[ 395.953159] RTAI[math]: loaded.
[ 396.216659] config string '0x0378'
[ 397.674116] RTAI[math]: unloaded.
[ 397.784611] SCHED releases registered named ALIEN RTGLBH
[ 397.849522] RTAI[malloc]: unloaded.
[ 397.945803] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 397.952770] I-pipe: Domain RTAI unregistered.
[ 397.952790] RTAI[hal]: unmounted.

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

More
07 Sep 2010 20:15 #4039 by BigJohnT
Replied by BigJohnT on topic Re:Run in place?
What command did you use to run EMC with including all paths?

John

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

More
08 Sep 2010 07:31 - 08 Sep 2010 07:50 #4047 by eslavko
Replied by eslavko on topic Re:Run in place?
As I already write:

In my home directory I do:

git clone git://git.linuxcnc.org/git/emc2.git emc2-dev

cd emc2-dev
cd src
./autogen.sh
./configure --enable-run-in-place
make
sudo make setuid
cd ..
emc


So I type emc in emc2-dev folder.
I had same thing for 2.5.0~pre release and works.

p.s.
I got no other error until last line (executing emc)
Last edit: 08 Sep 2010 07:50 by eslavko. Reason: added p.s.

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

More
08 Sep 2010 08:13 #4049 by cmorley
Replied by cmorley on topic Re:Run in place?
looks like you forgot to type:
. scripts/emc-environment

before running emc. You must do this each time you open a new terminal.

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

More
08 Sep 2010 10:17 #4051 by BigJohnT
Replied by BigJohnT on topic Re:Run in place?
To run a file in a home directory you have to use ./filename or include the complete path or use the envoroment script as Chris pointed out.

So for me to run a RIP on my computer I have to use the command:
/home/john/emc2-dev/scripts/emc /home/john/emc/configs/rip1/mill.config

Rather than type it in each time I just create a desktop launcher.

John

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

More
09 Sep 2010 08:38 #4069 by eslavko
Replied by eslavko on topic Re:Run in place?
cmorley wrote:

looks like you forgot to type:
. scripts/emc-environment

before running emc. You must do this each time you open a new terminal.


Thanks.
Problem solved :D

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

Time to create page: 0.075 seconds
Powered by Kunena Forum