Re: [Meep-discuss] Meep installation: Unbound variable: ctl-set-prompt!

2012-09-01 Thread Steven G. Johnson

On Aug 31, 2012, at 5:29 AM, Olf wrote:

 Dear all,
 I am just trying to install meep on an SLES cluster into my home folder. I 
 installed all dependencies into $HOME/install and try to do the same for 
 meep. 
 
 I run the configure script with the following parameters:
 
 toInstall/meep-1.2 ./configure --with-libctl=$HOME/install/ 
 --prefix=$HOME/install F77=gfortran CPPFLAGS=-I$HOME/install/include 
 LDFLAGS=-L$HOME/install/lib
 
 When I run make, it seems still to use the libctl version /usr/share which is 
 an old version:

You probably need to use 
./configure --with-libctl=$HOME/install/share/libctl 
GEN_CTL_IO=$HOME/install/gen-ctl-io

Note that --with-libctl is the ...prefix/share/libctl directory, as 
described in the manual.   (I added the GEN_CTL_IO just in case you didn't set 
your $PATH.)


___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss


Re: [Meep-discuss] meep installation

2010-11-09 Thread Bin Huang
Hi,

I had the same problem. I think if u put it in /usr/local/lib, when u installed 
meep by sudo , it already has some other version or something. I am not 
sure. Anyway, I installed BLAS and lapack on my desktop by myself, instead of 
sudo..

This is my memo when i installed lapack. U need to change some file before 
make. I do not remember exactly but I am sure you will figure it out.
---
PLAT = lib

# For gfortran compiler: SECOND and DSECND will use a call to the INTERNAL 
FUNCTION ETIME
TIMER= INT_ETIME

BLASLIB  = /home/huangbin/Desktop/BLAS/libblas.a

LAPACKLIB= $(PLAT)lapack.a
TMGLIB   = $(PLAT)tmglib.a
EIGSRCLIB= $(PLAT)eigsrc.a
LINSRCLIB= $(PLAT)linsrc.a

dont add $(MAKE) by single, complex, or whatever
---
When you configure MEEP, do 
./configure --prefix=/home/huangbin/Desktop/meep-1.1.1_v1 
--with-lapack=/home/huangbin/Desktop/lapack-3.2.1/liblapack.a

I hope this helps.

Best Regards,
Bin Huang (Bryan)
MIT Graduate Student '10
Computation for Design and Optimization
(+65)98947649

From: 朱孔涛 [pku.kt...@gmail.com]
Sent: Tuesday, November 09, 2010 9:50 AM
To: Bin Huang
Subject: Re: [Meep-discuss] meep installation

Hi Bin,
I have checked the libblas.a and liblapack.a respectively,using ar -t libblas.a.
I find that libblas.a contains sgemm.o and liblapack.a contains cheev.o.
Then i type:
./configure --with-blas=/usr/local/lib/libblas.a
--with-lapack=/usr/local/lib/liblapack.a
it says:
checking for sgemm_ in /usr/local/lib/libblas.a... yes
checking for cheev_ in /usr/local/lib/liblapack.a... no
checking for cheev_... no
checking for cheev_ in -llapack... no
checking for cheev_ in -llapack_rs6k... no
configure: error: LAPACK library not found
Do you have any idea about this,please tell me. I would be very appreciate.
Best regards.
Zhu Kongtao

2010/11/9, 朱孔涛 pku.kt...@gmail.com:
 Hi Bin,
 Thanks for your answer. I have met another problem in installing harminv.
 I have installed BLAS and LAPACK, and put them both in /usr/local/lib.
 If i type: ls /usr/local/lib
 i get libblas.a liblapack.a
 But when i install harminv and type ./configure
 it says:
 checking for sgemm_ in -lblas... yes
 checking for dgemm_ in -ldgemm... no
 checking for sgemm_ in -lcxml... no
 checking for sgemm_ in -ldxml... no
 checking for sgemm_ in -lscs... no
 checking for sgemm_ in -lcomplib.sgimath... no
 checking for sgemm_ in -lblas... (cached) yes
 checking for sgemm_ in -lessl... no
 checking for sgemm_ in -lblas... (cached) yes
 checking for cheev_... no
 checking for cheev_ in -llapack... no
 checking for cheev_ in -llapack_rs6k... no
 configure: error: LAPACK library not found

 I don't understand why it can find blas but can't find lapack?And i
 have changed the liblapack.a to some other precompiled lapack
 libraries.I have tried a lot,and it still can't find the lapack
 library.
 Best regards.

 2010/11/8, Bin Huang b...@mit.edu:
 Hi Kongtao,

 Yes I think you should. The auto installation of your OS isn't good
 enough
 to develop your own C++ programs.

 After you install meep by yourself, put test.cpp under meep-1.1.1/tests/.
 Follow the commands at the end of meep C++ tutorial.

 Best Regards,
 Bin Huang (Bryan)
 MIT Graduate Student '10
 Computation for Design and Optimization
 (+65)98947649
 
 From: 朱孔涛 [pku.kt...@gmail.com]
 Sent: Monday, November 08, 2010 9:57 AM
 To: Bin Huang
 Subject: Re: [Meep-discuss] meep installation

 hi,thanks for your answers.There is something i don't understand.I
 have already intalled meep using: sudo apt-get install meep h5utils.
 And i can use meep to run the *.ctl files.
 But if i use g++
 e.g. g++ `pkg-config --cflags meep` test.cpp -o test `pkg-config --libs
 meep`
 it says i should add the directory containing meep.pc
 and it also can't find meep.hpp
 Should i install meep again using meep-1.1.1.tar.gz?
 Thanks.


 2010/11/6, Bin Huang b...@mit.edu:
 Hi Kongtao,

 did you make sure that when you install meep, the hdf lib is included?
 This
 is what I needed to do. (I am running ubuntu.)

 env
 LDFLAGS=-L/home/huangbin/Desktop/harminv/lib:/usr/lib:/usr/local/lib:/home/huangbin/Desktop/lib
 env
 CPPFLAGS=-I/home/huangbin/Desktop/harminv/include:/usr/include:/usr/local/include:/home/huangbin/Desktop/include

 My hdf is installed on Desktop. So /home/huangbin/Desktop/lib and
 /home/huangbin/Desktop/include is where the hdf lib and header files
 are.

 Best Regards,
 Bin Huang (Bryan)
 MIT Graduate Student '10
 Computation for Design and Optimization
 (+65)98947649


 --
 Zhu Kongtao


 --
 Zhu Kongtao



--
Zhu Kongtao

___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss


Re: [Meep-discuss] meep installation

2010-11-06 Thread Bin Huang
Hi Kongtao,

did you make sure that when you install meep, the hdf lib is included? This is 
what I needed to do. (I am running ubuntu.)

env 
LDFLAGS=-L/home/huangbin/Desktop/harminv/lib:/usr/lib:/usr/local/lib:/home/huangbin/Desktop/lib
env 
CPPFLAGS=-I/home/huangbin/Desktop/harminv/include:/usr/include:/usr/local/include:/home/huangbin/Desktop/include

My hdf is installed on Desktop. So /home/huangbin/Desktop/lib and 
/home/huangbin/Desktop/include is where the hdf lib and header files are.

Best Regards,
Bin Huang (Bryan)
MIT Graduate Student '10
Computation for Design and Optimization
(+65)98947649
___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss


Re: [Meep-discuss] meep installation

2010-11-05 Thread Nizamov Shawkat
2010/11/5 朱孔涛 pku.kt...@gmail.com

 Hi everyone,
 I have a problem in meep installation.I have installed the file
 libhdf5-serial-1.6.6-0_1.6.6-4_i386.deb.


You should also install corresponding -dev package.

With best regards,
Shawkat Nizamov
___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Re: [Meep-discuss] Meep Installation: Unable to install libctl

2008-01-20 Thread Steven G. Johnson
On Thu, 17 Jan 2008, shiv chawla wrote:
 I am trying to install libctl on cygwin in windows. But I have an error 
 while ./configure saying in the end that linking to guile failed and 
 guile couldnot be found.But I have checked and guile is installed there 
 in /usr.  I am attaching the config.log file for your review. I 
 desperately need a solution as I want to use meep for my project.I have 
 invested a lot of time in resolving this problem but still away from a 
 solution. I thank you all in anticipation of a quick reply.

Is it possible that you have multiple conflicting versions of Guile 
installed?  The configure script found a guile-config in /usr/local/bin, 
but I'm guessing that Cygwin comes with guile installed in /usr (e.g. 
there is probably a /usr/bin/guile too).

In general, whenever your system has prepackaged versions of a particular 
library, you want to use that prepackaged version unless you know what you 
are doing.  For Cygwin, that means going to the Cygwin setup program and 
installing the guile-devel package from the Devel section.

In your case, you may have messed up your Cygwin installation by 
installing multiple incompatible versions of the same program/library, so 
the easiest thing might be to reinstall Cygwin from scratch.

Alternatively, install Debian or Ubuntu GNU/Linux and use the prepackaged 
Meep.

Steven

___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss


Re: [Meep-discuss] MEEP installation problem

2008-01-17 Thread Manoj Rajagopalan
Looks like a guile/guile-devel version mismatch to me. Your install
command failed because there was an existing version.

Instead of yum install try yum update

cheers
Manoj


Jiha Sung wrote:
 Dear MEEP Helper:
  
 Recently I have been trying to install MEEP and related interfaces into 
 a Linux(Fedora 7). I followed the instructions in web pages and I think 
 everything was installed. Summary of my MEEP installation procedure is 
 listed at the end of this mail. However, when I tested the first example 
 in the MEEP tutorial page 
 (http://ab-initio.mit.edu/wiki/index.php/Meep_Tutorial ). I do not get 
 the right output. I wrote the input, outputs, and error messages below. 
 Can somebody tell me what is wrong?
  
 Input file (ex1.ctl);
   (reset-meep)
   (set! geometry-lattice (make lattice (size 16 8 no-size)))
   (set! geometry (list
   (make block (center 0 0) (size infinity 1 infinity)
   (material (make dielectric (epsilon 12))
   (set! source (list
   (make source
   (src (make continuous-src (frequency 0.15)))
   (component Ez)
   (center -7 0
   (set! pml-layers (list (make pml (thickness 1.0
   (set! resolution 10)
   (run-until 200
 (at-beginning output-epsilon)
 (at-end output-efield-z))
  
 Output message:
   ---
Initializing structure...
   Working in 2D dimensions.
 block, center = (0,0,0)
 size (1e+20,1,1e+20)
 axes (1,0,0), (0,1,0), (0,0,1)
dielectric constant epsilon = 12
  time for set_epsilon = 0.0223849 s
  ---
creating output file ./ex1-eps-00.00.h5...
creating output file ./ex1-ez-000200.00.h5...
run 0 finished at t = 200.0 (4000 timesteps)
Elapsed run time = 0.191832 s
 Deprecated error message:
   SCM_STRINGP is deprecated.  Use scm_is_string instead.
   SCM_STRING_LENGTH is deprecated.  Use scm_c_string_length instead.
   scm_must_malloc is deprecated.  Use scm_gc_malloc and scm_gc_free 
 instead.
   SCM_STRING_CHARS is deprecated.  See the manual for alternatives.
   scm_must_free is deprecated.  Use scm_gc_malloc and scm_gc_free 
 instead.
 Outputs:
 ex1-eps-00.00.h5 looks O.K.
 ex1-ez-000200.00.h5 shows all 0's (when converted using h5totxt)
  
 Thanks in advance.
  
 Jiha
  
 
 Summary of MEEP installation (Jan. 8 – Jan. 12, 2007)
  
 For the functions of the programs to be installed, please read the MEEP 
 installation page.
 (http://ab-initio.mit.edu/wiki/index.php/Meep_Installation )
 1. Installing guile (This installation is not difficult)
 In any root directories,
 % yum list | grep guile
 % yum install guile-devel.x86.64
 % guile --version → It shows guile 1.8.1 is installed
 2. Installing libctl (This installation is not difficult.)
 Downloaded “libctl-3.0.2.tar.tar” into /root/Download.
 In /root/Download,
 % tar –xvf libctl-3.0.2
 % mv libctl-3.0.2 ..
 % cd /root/libctl-3.0.2
 % ./configure
   (If there comes error messages “Permission denied”,
 then “configure” file should be made executable;
 % chmod 744 configure
 % chmod 744 install-sh )
 % make
 % make install
  This produced “gen-ctl-io” in /usr/local/bin,
 “libctl.a”, “libctlgeom.a”, “libctlgeom.1a”, libctl.la” 
 in /usr/local/lib
 “ctlgeom.h”, “ctl-geom-types.h”, “ctl.h” in 
 /usr/local/include
 “gen-ctl-io.1” in /usr/local/man/man1
   many files in /usr/local/share/libctl/base and 
 /usr/local/share/libctl/utils
 3. Installing hdf5 (This installation needs care.)
 I followed the instructions of SCI institute web page
  
 (http://software.sci.utah.edu/doc/Installation/Guide/osx/sec.sr_hdf5_build.html
  
 ).
 There are also instructions in CBLFS web pages 
 (http://cblfs.cross-lfs.org/index.php/HDF5 and 
 http://cblfs.cross-lfs.org/index.php/H5utils).
  % Downloaded “hdf5-1.6.6.tar.gz” into /root/Download
  In the /root/Download directory,
  % gunzip  hdf5-1.6.6.tat.gz | tar xf
  % cd /root/hdf5-1.6.6
  % CC=gcc
  % CXX=g++
  % export CC CXX
  % ./configure --enable-threadsafe --with-pthread=/usr --prefix=/usr/local
  % make all
  % make install
  This produced files in /usr/local/bin, /usr/local/lib, /usr/local/doc.
 Finally, the followings are needed; check if there is a line 
 /usr/local/lib in
 /etc/ld.so.conf and run /sbin/ldconfig.
 4. Installing libpng and libpng-devel
 This is needed to install “h5toping” in h5utils package. “libpng” is 
 usually installed in Linux systems, but the header files need to be 
 installed through “libpng-devel”.
  % yum list | grep libpng
   (“libpng.x86_64” was already installed.)
  % yum install libpng-devel.x86_64  
 5. Installing h5utils (Once the installations 

Re: [Meep-discuss] MEEP installation problem

2008-01-17 Thread Jiha Sung
Could you give more specific instruction as I am not familar with guile.
In my system (Fedora 7), guile.x86-64 was installed when the system was set up. 
Then, I installed guile-devel.x86-64 this time using yum. These are for guile 
version 1.8.1. There are no more updates on this program. 
Don't you think since the installed guile is 64 bit version it does not match 
with other interfaces? If this is the case, will installing 32 bit version 
(guile.i386 ) help?

Jiha


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Re: [Meep-discuss] Meep installation error (floating point exception)

2007-02-22 Thread Steven G. Johnson

On Thu, 15 Feb 2007, btld123 wrote:
I met a problem with the school computer while installing meep on it. It 
is a RH Fedora 6 32 bit machine. I don't have any problem with my home 
computer which is a 64 bit AMD Fedora 6 64 bits. When I run make 
check, it stops right after an error. The error seems a Floating point 
exception. The detail of it is copied below. Hope someone can help me. 
Thank you!


Try configuring Meep with --enable-debug.  If the problem still occurs, 
then you can use the debugger (gdb) to get a stack trace to say precisely 
where the error occurs.


Steven

___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss


Re: [Meep-discuss] Meep installation problems: please help

2006-10-13 Thread Steven G. Johnson

On Fri, 13 Oct 2006, Ignazio Di Napoli wrote:

I cannot make meep. When making the libctl subfolder, I get this error:


My first guess is that you have more than one version of libctl installed, 
and the linker is trying to link to the old version and failing.  e.g. you 
installed libctl-3.0.1 in /usr/local/lib from source, but you also have an 
older libctl in /usr/lib.  This could happen if you are using Debian, for 
example, and you had installed the Debian MPB package.


(Debian now has libctl-3.0.1, but only if you are using Debian/testing or 
Debian/unstable.  If you use Debian/stable you could have libctl-2.2 in 
/usr/lib, which would cause the error you saw.)


Cordially,
Steven G. Johnson

___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss