NEWS
LinuxCNC 2.5.2 Release
LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Getting LinuxCNC Installing LinuxCNC Error in startup script: can't read "varval":

Welcome, Guest
Username: Password: Remember me

TOPIC: Error in startup script: can't read "varval":

Re:Error in startup script: can't read "varval": 26 Jun 2012 04:30 #21355

Hi ArcEye,
thank you for your effort!

I downloaded the tar-file and executed following sequence of commands:
./configure --enable-run-in-place
make
sudo make setuid
. ./scripts/rip-environment
linuxcnc

--> it is still the same result:
LD [M]  /home/cnc/emc2_5_0/src/wcomp.ko
  CC      /home/cnc/emc2_5_0/src/weighted_sum.mod.o
  LD [M]  /home/cnc/emc2_5_0/src/weighted_sum.ko
  CC      /home/cnc/emc2_5_0/src/xor2.mod.o
  LD [M]  /home/cnc/emc2_5_0/src/xor2.ko
make[1]: Verlasse Verzeichnis '/usr/src/linux-headers-2.6.32-122-rtai'
cp Module.symvers *.ko ../rtlib/
Updating 'whatis' database
Handbuchseiten unter /home/cnc/emc2_5_0/docs/man verarbeiten ...
Indexcache des Pfades »/home/cnc/emc2_5_0/docs/man/man1« wird aktualisiert. Bitte warten .../usr/bin/mandb: Warnung: /home/cnc/emc2_5_0/docs/man/man1/linuxcnc.1.in: fehlerhafter Dateiname wird ignoriert
fertig.
Handbuchseiten ohne »cat«-Dateien in /home/cnc/emc2_5_0/docs/man werden gesucht ...
Handbuchseiten unter /home/cnc/emc2_5_0/docs/man/cat3 verarbeiten ...
Handbuchseiten unter /home/cnc/emc2_5_0/docs/man/cat9 verarbeiten ...
Handbuchseiten unter /home/cnc/emc2_5_0/docs/man/cat1 verarbeiten ...
3 Handbuchverzeichnisse enthielten neuere Handbuchseiten.
225 Handbuchseiten wurden hinzugefügt.
0 Handbuchseiten ohne »cat«-Dateien wurden hinzugefügt.
0 alte Datenbankeinträge wurden entfernt.
You now need to run 'sudo make setuid' in order to run in place.
make: Verlasse Verzeichnis '/home/cnc/emc2_5_0/src'
cnc@cnc-VM:~/emc2_5_0/src$ sudo make setuid
[sudo] password for cnc: 
make: Gehe in Verzeichnis '/home/cnc/emc2_5_0/src'
chown root ../bin/linuxcnc_module_helper
chmod 4750 ../bin/linuxcnc_module_helper
chown root ../bin/pci_write
chmod 4750 ../bin/pci_write
chown root ../bin/pci_read
chmod 4750 ../bin/pci_read
make: Verlasse Verzeichnis '/home/cnc/emc2_5_0/src'
cnc@cnc-VM:~/emc2_5_0/src$ cd ..
cnc@cnc-VM:~/emc2_5_0$ . scripts/rip-environment
rip-environment     rip-environment.in  
cnc@cnc-VM:~/emc2_5_0$ . scripts/rip-environment
cnc@cnc-VM:~/emc2_5_0$ linuxcnc
LINUXCNC - 2.5.0
Error in startup script: can't read "varval": no such variable
    while executing
"return $varval"
    (procedure "getVal" line 8)
    invoked from within
"getVal $rcstring PICKCONFIG LAST_CONFIG "
    (procedure "initialize_config" line 15)
    invoked from within
"initialize_config"
    invoked from within
"set last_ini [initialize_config]"
    (file "/home/cnc/emc2_5_0/tcl/bin/pickconfig.tcl" line 204)
cnc@cnc-VM:~/emc2_5_0$ 

I could imagine two (or three) reasons:
- there is a problem with the installed tcl-version or with an other package
- I am running it in a virtual machine - perhaps I should test it on a real machine
- I am a little bit stupid ;)

Best Regards,

Andy
The administrator has disabled public write access.

Re:Error in startup script: can't read "varval": 26 Jun 2012 04:43 #21357

  • ArcEye
  • ArcEye's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1338
  • Thank you received: 103
  • Karma: 129
Hi
I could imagine two (or three) reasons:
- there is a problem with the installed tcl-version or with an other package
I doubt that configure would finish if the python / tk /tcl packages were not right
- I am running it in a virtual machine - perhaps I should test it on a real machine
That is more likely - looks like it cannot find the configs for whatever reason
- I am a little bit stupid
Doesn't seem likely, you got this far!:)

regards
The administrator has disabled public write access.

Re:Error in startup script: can't read 26 Jun 2012 04:53 #21359

ArcEye wrote:
- I am a little bit stupid
Doesn't seem likely, you got this far!:)

Thank you :silly:

Ok, I will try it on my real CNC PC.
What do you mean, should I remove the preinstalled LinuxCNC packages (from the Ubuntu LiveCd installation) first?

Best Regards,

Andy
The administrator has disabled public write access.

Re:Error in startup script: can't read 26 Jun 2012 05:28 #21361

  • ArcEye
  • ArcEye's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1338
  • Thank you received: 103
  • Karma: 129
......should I remove the preinstalled LinuxCNC packages (from the Ubuntu LiveCd installation) first?
No, the whole point of a RIP build is that you can have as many as you like without interfering with the installed version.
I think I have 5 now, with the test build I did just now of 2.5.

regards
The administrator has disabled public write access.

Re:Error in startup script: can't read 26 Jun 2012 07:28 #21364

Hi ArcEye,
I have just tested it on my real PC - and it is working fine! :cheer:

I am wondering, why it is not running on my virtual machine - but I don't want to waste more time for it...

Thank you very much for your support!
I wish you a nice week!

Best Regards,

Andy
The administrator has disabled public write access.

Re:Error in startup script: can't read 05 Sep 2012 17:55 #23954

  • PCW
  • PCW's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1671
  • Thank you received: 87
  • Karma: 116
One cause of this I found is a empty .linuxcncrc file (so no preferred config)
deleting (the empty) .linuxcncrc cures the problem
Last Edit: 05 Sep 2012 17:56 by PCW.
The administrator has disabled public write access.
Time to create page: 1.395 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.