pgf90在内核为3.x的linux上编译遇到crtbegin问题的解决办法

  • strict warning: Non-static method view::load() should not be called statically in /home/vasp/wwwroot/drupal-6.33/sites/all/modules/views/views.module on line 906.
  • strict warning: Declaration of views_handler_argument::init() should be compatible with views_handler::init(&$view, $options) in /home/vasp/wwwroot/drupal-6.33/sites/all/modules/views/handlers/views_handler_argument.inc on line 744.
  • strict warning: Declaration of views_plugin_row::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/vasp/wwwroot/drupal-6.33/sites/all/modules/views/plugins/views_plugin_row.inc on line 134.
  • strict warning: Declaration of views_plugin_row::options_submit() should be compatible with views_plugin::options_submit(&$form, &$form_state) in /home/vasp/wwwroot/drupal-6.33/sites/all/modules/views/plugins/views_plugin_row.inc on line 134.

我在Rehdat Fedora core 3时用pgf90编译VASP就遇到了找不到crtbegin.o这个文件。我从网上搜了一下,发现有这个的解决方法。
  先贴出来解决的办法:
  1、cd TeX Embedding failed!PGI是你的pgi安装在那个目录,比如你安装在/usr/pgi,则$PGI=/usr/pgi)
  2、more localrc
  则会看到GCCDIR和GCCINC没有设置。
  3、将localrc这个文件的有些东西进行改动(则是针对我的机器Fodera core 3):
  set LFC=-lg2c;
  set LDSO=/lib/ld-linux.so.2;
  set GCCDIR=/usr/lib/gcc-lib/i386-redhat-linux/3.3.4;
  set GCCINC=/usr/lib/gcc-lib/i386-redhat-linux/3.3.4/include;
  set G77DIR=/usr/lib/gcc-lib/i386-redhat-linux/3.3.4;
  set THROW=__THROW=;
  set HAMMER=;
  改动的部分主要是GCCDIR和GCCINC、G77DIR,在改动之前,你用可以先用locate crtbegin.o,查一下ctrbegin.o在哪个目录下,然后你把找到的gcc-lib的目录加到
  GCCDIR、GCCINC和G77DIR中。