0

尝试在 Solaris 10 Sparc 64 机器上构建 Octave 3.8.2 时,configure 告诉我它找不到 Qscintilla 库(以及其他几个库),即使我有它们。这就是我要说的:

./configure --prefix=$HOME/bin/octave --with-blas=./libblas.so --with-lapack=$HOME/octave-3.8.2/liblapack.a --disable-readline --with-curl-libdir=/opt/csw/lib --with-blas=/opt/csw/lib

这就是我得到的:

configure: WARNING:

I wasn't able to find a suitable style for declaring a push-pull
parser in a bison input file so I'm disabling bison.

configure: WARNING: Qhull library not found -- this will result in loss of functionality of some geometry functions.
configure: WARNING: HDF5 library not found.  Octave will not be able to save or load HDF5 data files.
configure: WARNING: FFTW3 library not found.  The slower FFTPACK library will be used instead.
configure: WARNING: FFTW3F library not found.  The slower FFTPACK library will be used instead.
configure: WARNING: GLPK library not found.  The glpk function for solving linear programs will be disabled.
configure: WARNING: cURL library not found.  The ftp objects, urlread and urlwrite functions will be disabled.
configure: WARNING: FLTK config script not found.  Native graphics will be disabled.
configure: WARNING: qrupdate not found.  The QR & Cholesky updating functions will be slow.
configure: WARNING: AMD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: CAMD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: COLAMD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: CCOLAMD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: CHOLMOD library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: CXSparse library not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: UMFPACK not found.  This will result in some lack of functionality for sparse matrices.
configure: WARNING: ARPACK not found.  The eigs function will be disabled.
configure: WARNING: Qscintilla library not found -- disabling built-in GUI editorconfigure: WARNING:
configure: WARNING: I didn't find the necessary libraries to compile native
configure: WARNING: graphics.  It isn't necessary to have native graphics,
configure: WARNING: but you will need to have gnuplot installed or you won't
configure: WARNING: be able to use any of Octave's plotting commands
configure: WARNING:
configure:
configure: NOTE: Libraries or auxiliary programs may be skipped if they are
configure: NOTE: not found OR if they are missing required features on your
configure: NOTE: system.

这就是我所拥有的:

# pwd
/opt/csw/lib
# ls *qsci*
libqscintilla2.so     libqscintilla2.so.11.3
libqscintilla2.so.11  libqscintilla2.so.11.3.0
# ls *curl*
libcurl.so.4  libcurl.so.4.3.0
#

问题是:

我如何通知 Octave 配置在哪里可以找到它想要的 Qscintilla(和其他)库?谢谢。

4

2 回答 2

1

我在尝试在 Ubuntu 64 位下从源代码构建 octave(我不确定 repo 版本 4.0 或 4.2)时遇到了类似的问题。像你一样,有很多台词像

configure: WARNING: ... library not found.

我很难过,但我终于设法让 octave 的配置文件找到依赖项:

1) 我创建了 /usr/lib/x86_64-linux-gnu 的别名,因为我发现这里安装了许多库,而不是 /usr/lib64 中的配置脚本搜索它们:

sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64

2)我寻找八度依赖

apt-cache depends octave

然后我确保它们安装在突触中,最重要的是它们的“-dev”版本。

然后当我制作 ../configure 并且它适用于大多数库时。您可能遇到的另一个问题是,如果您不使用 octave/etc/HACKING 中的说明,您必须这样做:

cd octave
./bootstrap
mkdir .build
cd .build
../configure
make

在我的计算机上找不到的唯一库称为“osmesa”,但似乎 3.8 版本不需要它,所以这对你来说应该不是问题(只是说如果你想像我一样从 repo 源安装) .

于 2015-05-10T02:23:57.690 回答
0

尝试构建 repos apt-get build-dep octave 或 yum-builddep octave

这对我有用,除了 fortran77 的 blas 库

然后我尝试了(以 Centos -yum 风格) yum install lapack64-devel lapack64 以防万一你还没有安装它们: yum install gl2ps-devel qrupdate-devel qt-devel qscintilla-devel java-devel

可能还有很多缺失,但这些解决了上述问题,至少部分解决了

于 2016-06-17T05:53:25.223 回答