About Installing LAPACK for Windows users

| コメント(1) | トラックバック(0)

1. Requirement: cygwin ( gcc, g++, g77, make, gdb )

2. Access to http://www.netlib.org/lapack/ and obtain lapack-3.1.1.gz.

3. After downloading lapack-3.1.1.gz in /cygwin/home/***/, unzip lapack-3.1.1.gz, when the command line is

$ gunzip -c lapack-3.1.1.gz | tar xv

or

$ tar xvfz lapack-3.1.1.gz

Since current directory is /cygwin/home/***/, move it to /cygwin/home/***/lapack-3.1.1/, when the command line is

$ cd lapack-3.1.1

5. Copy and modify make.inc.LINUX, when the command line is given below.

$ cp INSTALL/make.inc.LINUX ./make.inc

6. Modify make.inc, using your text editor.

     <EXAMPLE>
     NOOPT = -ffloat-store
     # The above line is necessary when using g95.
     BLASLIB = $(HOME)/lapack-3.1.1/blas$(PLAT).a
     LAPACKLIB = lapack$(PLAT).a
     TMGLIB = tmglib$(PLAT).a
     EIGSRCLIB = eigsrc$(PLAT).a
     LINSRCLIB = linsrc$(PLAT).a

7. Build BLAS library and LAPACK library, when the command lines are

$ make blaslib

and

$ make lapacklib

If neither blas_LINUX.a nor lapack_LINUX.a were made in your current directory, modify make.inc appropriately.

8. Copy and modify blas_LINUX.a and lapack_LINUX.a, when the command lines are

$ cp blas_LINUX.a /lib/libblas.a
$ cp lapack_LINUX.a /lib/liblapack.a
$ ranlib /lib/libblas.a
$ ranlib /lib/liblapack.a

9. Now you can use LAPACK, when the command line is

$ g77 -o file01 file01.f -llapack -lblas -lg2c -lm

where file01.f were an example and you can use other fortran77 programs.

トラックバック(0)

トラックバックURL: http://www.suzuki-labor.com/mt/mt-tb.cgi/2226

コメント(1)

How to cope with "/bin///ld: cannot find -lg2c" for win users

  When I used lapack library with g95, the error message
was displayed to indicate that ld.exe couldn't find
libg2c.a. To solve the problem, I typed in
cp /lib/gcc/i686-pc-cygwin/3.4.4/libg2c.a /lib/libg2c.a
at the command line and could compile *.f90 and create *.exe
using lapack library with g95. Then, the command line was
g95 -o * *.f90 -llapack -lblas -lg2c -lm.

コメントする

My Photo
プロフィール!
2016・11・15 改訂
spacer01
rssspacer01foaf
spacer01
atom.xml
spacer01

この記事について

このページは、Suzuki TakashiがMarch 24, 2007 11:50 PMに書いた記事です。

ひとつ前の記事は「正式にスコアが公開された模様。」です。

次の記事は「水道橋の高校にて。」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。

August 2023

Sun Mon Tue Wed Thu Fri Sat
    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    

Recent Posts

月別 アーカイブ

Workbooks

  • Basic Word List
  • Basic Word List 3rd Edition
  • Samuel C. Brownstein (著), Mitchel Weiner (著), Sharon Weiner Green (著)
  • SAT、GRE用の語彙が2000語以上収録され、2009年4月に4th Editionが出版される。又、Synonym Testが750題、Comprehensive Testが75題付記されている。2005年8月に国内向けの訳本として『最強の英語ボキャブラリー1700語』が出版され、Synonym Testが500題、Comprehensive Testが50題付記されている。
  • 1100 Words You Need to Know
  • 1100 Words You Need to Know 4th Edition
  • Murray Bromberg (著), Melvin Gordon (著)
  • SAT用の語彙が920語、熟語が184語収録され、2008年6月に5th Editionが出版される。Review, 24題で1週分の知識の確認を、Analogy Review, 15~20題で10週分の確認を、Final Review Test, 150題で46週分の確認を行うことになる。1周しただけで定着する程簡単なものではなく、繰り返しが重要なことは他のボキャビル本と同様。音声教材として Wordplay: 550+ Words You Need to Know 2nd Edition が出されており、The Rambling Panthersから始まる7つのドラマに新出語句を散りばめている。
  • Kaplan Word Power
  • Kaplan Word Power 3rd Edition
  • Kaplan (著)
  • SAT、GRE用の語彙が750語収録され、Plug Inの10~15題で1課分の知識の確認を行うことになる。収録語彙の水準は類書よりやや高めで、Plug Inでの設問の尋ね方もやや高度なものになっている。具体的には Fill in the blanks. や Match the word closest to the word that means the opposite. といった形式に苦労した。又、音声教材として Kaplan Word Power (CD) があり、CD2枚の構成になっている。
  • Word Smart
  • Word Smart for the GRE, 2nd Edition
  • Princeton Review (著)
  • GRE用の語彙が678語収録され、Quick Quizは65課あり、6~15題で1課分の知識の確認を、Final Exam Drillの570題で57課分の確認を行うことになる。類書にSAT用のWord Smart、Word Smart Ⅱ等があり、それらを含めて繰り返し訓練するとなると、結構時間が掛かるのは当然だろう。又、音声教材としてSAT用だが The Princeton Review Word Smart CD があり、All or Nothingから始まる14のドラマに228語が散りばめられている。
spacer01

Banner


Bookmark

  • Valid XHTML 1.0 Transitionalspacer01
  • Valid CSS!spacer01
OpenID 対応しています OpenIDについて