victorliu / S4

Stanford Stratified Structure Solver - Electromagnetic simulator for layered periodic structures
http://www.stanford.edu/group/fan/S4/
GNU General Public License v2.0
131 stars 149 forks source link

RHEL6 build fail sampler example #47

Open burntyellow opened 7 years ago

burntyellow commented 7 years ago

Hello,

Not sure if this is the appropriate place but I could not find any link for requesting help. I built S4 for RHEL6 but it's giving errors (see below). I could run many of the other examples fine. Would someone do a build of the latest source and test the examples below to verify that all is legit in the repo? Also, the INSTALL mentioned a configure script; can this be added to the repo? I customized the Makefile.Linux for my build. Thanks.

-bash-4.1$ S4  sampler.lua
sampler.lua:40: attempt to index a userdata value (global 'sampler')
stack traceback:
    sampler.lua:40: in main chunk
-bash-4.1$
-bash-4.1$ S4  interpolator.lua
interpolator.lua:9: attempt to index a userdata value (global 'interpolator')
stack traceback:
    interpolator.lua:9: in main chunk
-bash-4.1$
-bash-4.1$ pwd
/data/pkg/S4/S4/examples/magneto
-bash-4.1$ S4 slab.lua
slab.lua:83: unexpected symbol near ']'
-bash-4.1$