安装 GATE 软件

安装 GATE 软件

我尝试在 Ubuntu 16.04 上安装 GATE,步骤如下:

/usr/bin/ld: cannot find -lPostscript
/usr/bin/ld: cannot find -lPhysics
collect2: error: ld returned 1 exit status
CMakeFiles/Gate.dir/build.make:16728: recipe for target 'Gate' failed
make[2]: *** [Gate] Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/Gate.dir/all' failed
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

我如何才能找到“Postscript”和“Physics”?

答案1

man ld

   -l namespec
   --library=namespec
       Add the archive or object file specified by namespec to the list of files to link.
       This option may be used any number of times.  If namespec is of the form :filename, ld
       will search the library path for a file called filename, otherwise it will search the
       library path for a file called libnamespec.a.

       On systems which support shared libraries, ld may also search for files other than
       libnamespec.a.  Specifically, on ELF and SunOS systems, ld will search a directory for
       a library called libnamespec.so before searching for one called libnamespec.a.  (By
       convention, a ".so" extension indicates a shared library.)  Note that this behavior
       does not apply to :filename, which always specifies a file called filename.

因此,您要查找的文件是libPhysics.solibPhysics.a和。libPostscript.solibPostscript.a

我在 Ubuntu 软件包存档中找不到这些文件,所以我猜测它们是通过之前的步骤来设置的。

检查您在前面步骤中的工作(您是否正确输入了命令,该命令是否有效?)。

相关内容