Error in startup script: can't read "varval":
- poolspieler
- Offline
- New Member
- Posts: 13
- Thank you received: 0
I want to compile and build LinuxCNC from source code.
I just installed git and the other packages in order to get the project compiled.
I run this commands:
./autogen.sh
./configure
make
sudo make setuid
cd ..
. scripts/rip-environment
linuxcnc
But after I run linuxcnc, I get this error:
cnc@cnc-VM:~/emc2-dev$ linuxcnc
LINUXCNC - 2.6.0~pre
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-dev/tcl/bin/pickconfig.tcl" line 204)
cnc@cnc-VM:~/emc2-dev$
I already googled this issue - but I didn't find any useful information.
Two hints:
- I checked out the latest version --> should I use 2.5.0 instead?
- I compiled it on a virtual machine (VirtualBox)
Best Regards,
Andy
Please Log in or Create an account to join the conversation.
I run this commands:
Code:
./autogen.sh
./configure
make
sudo make setuid
cd ..
. scripts/rip-environment
linuxcnc
The sequence for a RIP install used to be
./configure --enable-run-in-place
make
make setuid
cd ../
. ./scripts/emc_environment
emc
Allowing for re-branding changes, check what type of build configure does without any switches (./configure --help)
It used to be a user build, ie for installation into the file system.
I am wondering if you have done a normal installable build and are trying to use it as RIP
I would just use 2.5 unless you want any of the features only in the master.I checked out the latest version --> should I use 2.5.0 instead?
Be aware that any snapshot you download may be broken in some respect.
regards
Please Log in or Create an account to join the conversation.
- poolspieler
- Offline
- New Member
- Posts: 13
- Thank you received: 0
thank you for your answer!
Now I checked out the 2.5.0 Release and compiled it.
I ran this commands:
make
make setuid
cd ../
. ./scripts/emc_environment
emc
But there is NO ./scripts/emc_environment file.
What I am doing wrong?
Here are some lines of my console:
cnc@cnc-VM:~/emc2_5-dev$ ls
app-defaults configs debian docs lib linuxcncicon.png linuxcnc.xcf README scripts src tests VERSION
bin COPYING directory.map include linuxcnc.gif linuxcnc-wizard.gif nc_files rtlib share tcl TODO
cnc@cnc-VM:~/emc2_5-dev$ ls scripts/
decode_dmesg githelper.sh haltcl latency-test linuxcncmkdesktop.in rip-environment.in simulate_probe
emc hal_demo haltcl.in linuxcnc realtime rtapi.conf swish
get-deb-component-from-git halrun latencyplot linuxcnc.in realtime.in rtapi.conf.in torture.py
get-version-from-git halrun.in latencyplot.in linuxcncmkdesktop rip-environment runtests version-is-release
cnc@cnc-VM:~/emc2_5-dev$ cat VERSION
2.5.0
cnc@cnc-VM:~/emc2_5-dev$ emc
The emc script is deprecated; use the linuxcnc script instead
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 "/usr/lib/tcltk/linuxcnc/bin/pickconfig.tcl" line 204)
cnc@cnc-VM:~/emc2_5-dev$
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
You misunderstood me - that's what theBut there is NO ./scripts/emc_environment file.
was about.Allowing for re-branding changes
I am sure the new script IS called rip_environment, everything with emc in it was changed.
What you don't seem to have done is set configure for a RIP installation
./configure --enable-run-in-place
or checked what type of build you get by default.
My version of 2.5 was a pre-release one but configure still took
--prefix=/usr for a system install, and
--enable-run-in-place for a RIP install
The reason I guessed your paths are screwed up is that pickconfig was a tcl program to try to determine the correct .ini file to use, in the old emc script.
Assuming that your ~/linuxcnc directory exists and has some configs in it, need to make sure you have the correct build and environment for RIP.
regards
Please Log in or Create an account to join the conversation.
JT just answered one part whilst I was still writing and I can confirm that --enable-run-in-place appears to have been deprecated and configure should make a RIP build if you do not specify a --prefix=
I have just downloaded 2.5 from here
linuxcnc.org/hardy/dists/lucid/linuxcnc2...inuxcnc_2.5.0.tar.gz
( don't ask me why it is /hardy/dists/lucid/ seems to be the same file as at /lucid/dists/lucid/ !?)
compiled and run it with
./configure --enable-run-in-place (not necessary but makes sure)
make
make setuid
cd ../
. ./scripts/rip_environment
linuxcnc
sequence
without any problems.
Try that link and compile as above
regards
Please Log in or Create an account to join the conversation.
- poolspieler
- Offline
- New Member
- Posts: 13
- Thank you received: 0
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
Please Log in or Create an account to join the conversation.
I doubt that configure would finish if the python / tk /tcl packages were not rightI could imagine two (or three) reasons:
- there is a problem with the installed tcl-version or with an other package
That is more likely - looks like it cannot find the configs for whatever reason- I am running it in a virtual machine - perhaps I should test it on a real machine
Doesn't seem likely, you got this far!- I am a little bit stupid
regards
Please Log in or Create an account to join the conversation.
- poolspieler
- Offline
- New Member
- Posts: 13
- Thank you received: 0
Doesn't seem likely, you got this far!- I am a little bit stupid
Thank you
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
Please Log in or Create an account to join the conversation.
No, the whole point of a RIP build is that you can have as many as you like without interfering with the installed version.......should I remove the preinstalled LinuxCNC packages (from the Ubuntu LiveCd installation) first?
I think I have 5 now, with the test build I did just now of 2.5.
regards
Please Log in or Create an account to join the conversation.