本文介绍了如何使我的Ubuntu从给定的源中寻找库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我正在尝试编译scilab(是的,我的任务是编译它而不是使用apt-get),但是在解决了一些问题之后,我得到了以下内容: 正在检查jogl2的最低版本(规范版本2.2)...配置:错误:jogl2的版本错误。预期至少为2.2。找到2.1 2.1似乎是最新的apt-get优惠,所以我从 http://jogamp.org/deployment/jogamp-current/archive/ jogamp-all-platforms.7z 并成功编译(sudo ant junit.run返回成功的单元测试),但是当我回到scilab时,它仍然找到2.1版本的jogl。我该如何寻找我编译的较新版本?解决方案我在Scilab上遇到了同样的问题,尝试从 https://github.com/opencollab/scilab/blob/master。 问题是文件scilab / configure查找名为 jogl2 * 的jar,但是最新版本的jogl不再存在使用该jar名称。 因此,最终Scilab不会使用jogl 2.2进行构建,但具有讽刺意味的是配置文件需要它。 编辑: Scilab确实使用jogl 2.2构建,而不是使用jogl 2.3构建,这是我们俩都尝试的最新版本。 Jogl 2.3重组软件包名称。 如果您获得jogl 2.2.4 http://jogamp.org/deployment/v2.2.4/jar/ 将jar安装在 / usr / share / java 中。为了回答您的原始问题,Ubuntu上的Java将首先显示在这里。将 /usr/share/java/jogl-all.jar 重命名为 /usr/share/java/jogl2.jar 。 gouessej的评论是正确的,有人可能会修改Scilab以使其与最新的jogl一起使用。当他们这样做时,他们可能想解决掩埋在configure脚本中的包管理逻辑,并将其移至Maven之类。 I'm trying to compile scilab (yes, my task is to compile it instead of using apt-get) but after solving some problems I get the following one:checking minimal version (Specification-Version 2.2) of jogl2... configure: error: Wrong version of jogl2. Expected at least 2.2. Found 2.12.1 seems to be the latest one apt-get offers so I downloaded the newest version from http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z and successfully compiled it (sudo ant junit.run returns successful unit tests) but when I go back to scilab it still finds the 2.1 version of jogl. How can I make it look for the newer one I compiled? 解决方案 I just had the same problem with Scilab, I'm trying to build it from https://github.com/opencollab/scilab/blob/master .The problem is that the file scilab/configure looks for jars named "jogl2*", however the newest version of jogl no longer uses that jar name.So ultimately Scilab won't build with jogl 2.2, yet the configure file ironically requires it. I'll keep you posted if I find a workaround.EDIT:Scilab does build with jogl 2.2, just not with jogl 2.3 which is the latest version we both tried. Jogl 2.3 restructures package names.If you get jogl 2.2.4 http://jogamp.org/deployment/v2.2.4/jar/ install the jars in /usr/share/java. To answer your original question, Java on Ubuntu will look there first.However you still need to do one hack to get scilabs configure script to work. Rename /usr/share/java/jogl-all.jar to /usr/share/java/jogl2.jar . gouessej 's Comment is correct it, someone will likely modify Scilab to work with the latest jogl. When they do, they may want to tackle the package management logic buried in the configure script, and move it to something like Maven. 这篇关于如何使我的Ubuntu从给定的源中寻找库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-14 06:39