I employ PRE-COMPILED BINARY INSTALLATION (), which is not recommended. However, I am stupid, and I still tried to use it, even if my system is
- At step 2 in https://heasarc.gsfc.nasa.gov/docs/software/lheasoft/download.html, I chose General-Use FTOOLS.
- Follow the guide of PRE-COMPILED BINARY INSTALLATION (Not Recommended) in https://heasarc.gsfc.nasa.gov/docs/software/lheasoft/ubuntu.html. The last step, Initialization, can be replaced by the method in https://heasarc.gsfc.nasa.gov/docs/software/lheasoft/install.html.
It should be OK now. But we use different ubuntu version, so the versions of dependencies are also different. So we have to upgrade these dependencies.
- Perl. It is the main dependency, which is dependent on perl-base, perl-modules and libperl. Be careful, libperl and libperl-dev are different.
- dpkg. The new perl installation file is .deb format, so we have to use new dpkg. If you use downloaded packages to install dpkg, you should cp /var/lib/dpkg/status to /usr/local/var/lib/dpkg/status. Sometimes, it will raise some errors, if not do that.
- gcc. In fact, we only need new libstdc++.so.6, but the library provided by heasoft offical website is old. Thus, we have to find the newest libstdc++.so.6 by ourseleves. Usually, we have to cp libstdc++.so.6 to an appropriate direcotry, which is up to your configuration.
You'd better to upgrade these dependencies through the packages at https://launchpad.net/ubuntu. Of course, apt-get is also useful, but I face some problems when I use apt-get to install this dependencies.