CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-10-2010, 05:03 AM
 
Join Date: Jan 2010
Location: Iran
Posts: 4
faran is on a distinguished road
Please help: Running EMC2

Hi every body
I have Ubuntu 8.4 and install emc2 form live CD successfully. now i want to install emc2 from source code but i have some problems.
I can configure and build emc2 successfully, but when i run emc2, i see these errors in terminal:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Machine configuration directory is '/home/faran/emc2/configs/stepper'

Machine configuration file is 'stepper_mm.ini'

Starting EMC2...

module_helper is not setuid root

Realtime system did not load

Shutting down and cleaning up EMC2...

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

RTAPI: ERROR: could not open shared memory (errno=13)

HAL: ERROR: rtapi init failed

halcmd: hal_init() failed: -9

NOTE: 'rtapi' kernel module must be loaded

module_helper is not setuid root

module_helper is not setuid root

module_helper is not setuid root

module_helper is not setuid root

module_helper is not setuid root

module_helper is not setuid root

module_helper is not setuid root

Cleanup done

EMC terminated with an error. You can find more information in the log:

/home/faran/emc_debug.txt

and

/home/faran/emc_print.txt
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

please tell me what should i do?
Reply With Quote

  #2   Ban this user!
Old 01-11-2010, 05:21 AM
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 5
mauve_alert is on a distinguished road

Originally Posted by faran View Post
I have Ubuntu 8.4 and install emc2 form live CD successfully. now i want to install emc2 from source code but i have some problems.
Hello Faran. Recently I installed emc2 from source on debian, so these error messages look familiar.
Originally Posted by faran View Post
please tell me what should i do?
Jump up and down? Usually works for me.

If jumping doesn't do it for you, did you do a setuid root? Because the first message you get after starting it says:
Originally Posted by faran View Post
Starting EMC2...

module_helper is not setuid root
A quick quick check would be to go to your emc2 source dir and do a "sudo make setuid" and see if that fixes things. If not, here is a good list of instructions to help in building from source.

good luck!
Fred
Reply With Quote

  #3   Ban this user!
Old 01-12-2010, 12:05 AM
 
Join Date: Jan 2010
Location: Iran
Posts: 4
faran is on a distinguished road

Dear mauve_alert
thanks for your attention

but i run these commands
---------------------------------------
$ cd src
$ ./configure --enable-run-in-place
$ make
$ sudo make setuid
-----------------------------------------
and after build successfully, when i run emc i gave those errors

in addition, i can run it without any problem in simulator mode
----------------------
./configure --enable-run-in-place --enable-simulator
Reply With Quote

  #4   Ban this user!
Old 01-12-2010, 03:35 AM
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 5
mauve_alert is on a distinguished road

Hello faran,

The "module_helper is not setuid root" message is still somewhat suspicious. Not sure if that is just a misleading error message, but best be sure and try to run emc as root (no sudo or setuid) and see if that works.
Code:
~/emc2/src/ % su -
~/emc2/src/# . scripts/emc-environment
~/emc2/src/# emc
If that still gives you the exact same errors I have a couple of questions:
  • what kernel version are you using?
  • which rtai version are you using?
  • did you build your own kernel or a prebuilt one?
  • what kind of latency do you get when you run the rtai latency test?
I ask since I am wondering if you have RTAI configured correctly ...

hope that helps,
Fred
Reply With Quote

  #5   Ban this user!
Old 01-12-2010, 09:34 AM
 
Join Date: Jan 2010
Location: Iran
Posts: 4
faran is on a distinguished road

Originally Posted by mauve_alert View Post
Hello faran,

The "module_helper is not setuid root" message is still somewhat suspicious. Not sure if that is just a misleading error message, but best be sure and try to run emc as root (no sudo or setuid) and see if that works.
Code:
~/emc2/src/ % su -
~/emc2/src/# . scripts/emc-environment
~/emc2/src/# emc
If that still gives you the exact same errors I have a couple of questions:
  • what kernel version are you using?
  • which rtai version are you using?
  • did you build your own kernel or a prebuilt one?
  • what kind of latency do you get when you run the rtai latency test?
I ask since I am wondering if you have RTAI configured correctly ...

hope that helps,
Fred

Dear Fred

your guidance help me. the EMC2 runs without any problem

thanks a lot
good luck
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-12-2010, 10:14 AM
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 5
mauve_alert is on a distinguished road

Hello faran,

Glad to hear you've got it working. Was it just a matter of running it as root? Could you maybe give a short description of what it was that made it work? That way the next guy who runs into the same problem can use this information.

Anyways good luck with your working emc install!
Fred
Reply With Quote

  #7   Ban this user!
Old 01-17-2010, 07:01 AM
 
Join Date: Jan 2010
Location: Iran
Posts: 4
faran is on a distinguished road
Smile

Hi Fred
Sorry for delay.

Was it just a matter of running it as root? Could you maybe give a short description of what it was that made it work?
yes of course, it's just for root.
I enter what you say about su

~/emc2/src/ % su -
It wanted password, but when i entered my password, it told failure
and then tried this command
sudo su
and entered may pass, and it worked!!! and then I can work as a root user. so I run emc.

again thanks for your help. really I did not know how can i run emc.

good luck
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What CAM for EMC2? cwebs LinuxCNC (formerly EMC2) 7 09-02-2009 05:52 PM
Running comedi (data acquisition) with EMC2 software uoayhe LinuxCNC (formerly EMC2) 1 07-16-2009 07:51 PM
Having trouble running keling 4030 drivers with emc2 OneAndy LinuxCNC (formerly EMC2) 11 01-25-2009 07:03 PM
emc2 running a hermes engraver - video. samco LinuxCNC (formerly EMC2) 9 07-16-2008 09:40 AM
Need Help!- M8 still not being red by EMC2 SpeedsCustom LinuxCNC (formerly EMC2) 27 04-13-2008 03:36 PM




All times are GMT -5. The time now is 05:15 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361