Im new here as well as to install software from the source.
我是新来的,也从源代码安装软件。
I want to install http://www.hdfeos.org/software/h4cflib.php to convert hdf --> netcdf files.
我想安装http://www.hdfeos.org/software/h4cflib.php来转换hdf——> netcdf文件。
External requirements are HDF4 HDF-EOS2 libraries.
外部需求是HDF4 HDF-EOS2库。
So I 1st checked with
我第一次检查
dpkg -l | grep hdf
ii libhdf4-0-alt 4.2.10-3.2 amd64 Hierarchical Data Format library (without NetCDF)
ii libhdf5-10:amd64 1.8.16+docs-4ubuntu1 amd64 Hierarchical Data Format 5 (HDF5) - runtime files - serial version
Thus I assumed to have libhdf4 without netcdf installed (see the hint on eos instructions: HDF4 library must be configured with "--disable-netcdf" option.)
因此,我假设libhdf4没有安装netcdf(请参阅eos指令上的提示:HDF4库必须配置“—disable-netcdf”选项)。
2nd for hdf-eos nothing found in the same way. So tried to install this, from: https://newsroom.gsfc.nasa.gov/sdptoolkit/TKDownload.html --> hdfeos --> latest_release --> HDF-EOS2.19v1.00.tar.Z and followed user guide from the same folder: HDF-EOS_UG.pdf
对hdf-eos来说,没有什么是用同样的方法找到的。所以尝试安装这个,从:https://newsroom.gsfc.nasa.gov/sdptoolkit/TKDownload.html——> hdfeos——> latest_release——> HDF-EOS2.19v1.00.tar。Z和遵循来自同一文件夹的用户指南:HDF-EOS_UG.pdf
install-script section (Appendix A.1.3.1):
安装脚本部分(附录A.1.3.1):
zcat HDF-EOS2.19v1.00.tar.Z | tar xvf -
cd hdfeos
bin/INSTALL-HDFEOS -sgi64
Error: In 64-bit linux platform the env. variable LINUX_BRAND must be set to linux32 or linux64 before running this script.
Installation Using Autoconf/Automake (Appendix A.1.3.2):
使用Autoconf/Automake进行安装(附录A.1.3.2):
cd [...]/hdfeos
./configure --with-hdf=/usr/lib/libmfhdfalt.so.0 --libdir=[...]/hdfeos/lib/linux
[...]
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for ceil in -lm... yes
checking for jpeg_set_defaults in -ljpeg... no
configure: error: couldn't find jpeg library
Here I did /usr/lib/libmfhdfalt.so.0 because I found:
在这里我确实/usr/lib/libmfhdfalt.so。0因为我发现:
ldconfig -p | grep hdf
libmfhdfalt.so.0 (libc6,x86-64) => /usr/lib/libmfhdfalt.so.0
But problem seems here to be jpeg library anyway.
但是这里的问题似乎是jpeg库。
ldconfig -p | grep jpeg
libjpeg.so.9 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libjpeg.so.9
libjpeg.so.8 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libjpeg.so.8
dpkg -l | grep jpeg
ii libjpeg-turbo8:amd64 1.4.2-0ubuntu3 amd64 IJG JPEG compliant runtime library.
ii libjpeg8:amd64 8c-2ubuntu8 amd64 Independent JPEG Group's JPEG runtime library (dependency package)
ii libjpeg9:amd64 1:9b-1ubuntu1 amd64 Independent JPEG Group's JPEG runtime library
Tried also to install it from source. Found in the eos folder on: jpegsrc.v6b.tar.gz
还尝试从源代码安装它。在eos文件夹中可以找到:jpegsrc.v6b.tar.gz
cd jpeg-6b/
./configure
make
sudo make install
works without errors apart from me having to manually create a folder.
在没有错误的情况下,我必须手动创建一个文件夹。
So I try again to install:
所以我再次尝试安装:
cd [...]/hdfeos
./configure --with-hdf=/usr/lib/libmfhdfalt.so.0 --with-jpeg=/usr/local/bin/ --libdir=[...]/hdfeos/lib/linux
[...]
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for ceil in -lm... yes
checking for jpeg_set_defaults in -ljpeg... no
configure: error: couldn't find jpeg library
for the install scritpt method: what to do about this LINUX_BRAND variable?
对于安装scritpt方法:如何处理这个LINUX_BRAND变量?
for the autoconf/automake way: Do I have wrong path to the jpeg library? If so how do I find the path? Is there something wrong in general with proceeding?
对于autoconf/automake方式:是否有错误的jpeg库路径?如果是,我如何找到路径?总的来说有什么问题吗?
I don't really know what to read or to google. Sorry if the quesion is not properly posed, I will learn if you correct me. Thanks a lot for your help.
我真的不知道该读什么或去谷歌。对不起,如果这个问题没有正确的提出,我将学习如果你纠正我。非常感谢你的帮助。
1 个解决方案
#1
0
I don't need a solution here anymore. Figured out that the binariy executable version for CentOs works for me, I didn't know and try that.
我不需要解了。我发现CentOs的二轴可执行版本对我来说是可行的,我不知道并尝试了。
If someone still wants to give a short explanation about installation of libraries: how to find out if and where installed and how to pass the latter information to a configure command, I would be glad to know! Thanks.
如果有人还想对库的安装给出一个简短的解释:如何查找是否安装、安装在哪里以及如何将后面的信息传递给configure命令,我很高兴知道!谢谢。
#1
0
I don't need a solution here anymore. Figured out that the binariy executable version for CentOs works for me, I didn't know and try that.
我不需要解了。我发现CentOs的二轴可执行版本对我来说是可行的,我不知道并尝试了。
If someone still wants to give a short explanation about installation of libraries: how to find out if and where installed and how to pass the latter information to a configure command, I would be glad to know! Thanks.
如果有人还想对库的安装给出一个简短的解释:如何查找是否安装、安装在哪里以及如何将后面的信息传递给configure命令,我很高兴知道!谢谢。