help in installing HEASoft in Manjaro-gnome

raman kumar

Member
Credits
1,985
manjaro% cd /home/raman/heasoft-6.28/BUILD_DIR/
manjaro% ls
BuildLib.cmake fermi-init.csh hmake
Makefile-std fermi-init.sh hmakerc
Makefile.in fermi-setup.in hwrap
binary gencmake install-sh
build.log hd_install.c install.log
config.guess hd_scanenv lhea-fixperl
config.out headas-init.csh lhea-fixpfiles
config.sub headas-init.sh makedef.pl
configure headas-setup.in
configure.in hlp2html
manjaro% sudo ./configure 2>&1 | tee config.out
[sudo] password for raman:
sudo: ./configure: command not found
manjaro%
 

Attachments



wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
14,557

f33dm3bits

Gold Member
Gold Supporter
Credits
16,567
Raman, why do you keep asking the same questions, you asked that here? You keep asking the same questions because you don't understand Linux basics, how do I know this because you are just copying/pasting commands without actually knowing what you are doing or you wouldn't be asking this once again. You also never learn anything from previous topics, if you would actually take the time to learn Linux basics, pay attention in topics you create and make some effort to actually learn something you would be able to figure this out on your own by just following the install instructions you attached in this topic. If I can do it you can do it, quit being a lazy ass penguin.

As someone mentioned on the Manjaro forums, since you are using an Arch based distribution you can install HEASOFT from the AUR.
1. sudo pacman -S base-devel git
2. Press Enter and the question after that Y
3. git clone https://aur.archlinux.org/heasoft.git
4. cd heasoft
5. makepkg -isc

But you might as well take the advice from the Manjaro forums because I don't know if they have a default AUR helper installed in Manjaro.
 
Last edited:

raman kumar

Member
Credits
1,985
sir i am using source code . i have already downloaded heasoft-6.28src.tar.gz.tar from nasa HEASARC website. at my home network is slow and i can't download it again from AUR repository.i can't use pamac build heasoft due to slow network
 

f33dm3bits

Gold Member
Gold Supporter
Credits
16,567
Read the other post I linked where you asked the same question.
 

raman kumar

Member
Credits
1,985
manjaro% cd /home/raman/heasoft-6.28/BUILD_DIR/
manjaro% ./configure --x-libraries=/usr/lib --x-includes=/raman/include
zsh: permission denied: ./configure
manjaro% sudo ./configure --x-libraries=/usr/lib --x-includes=/raman/include

[sudo] password for raman:
sudo: ./configure: command not found
manjaro%
 

f33dm3bits

Gold Member
Gold Supporter
Credits
16,567
Have you even tried using the package managers search, try this instead.
Code:
pacman -Ss fortran
You will then find the package you are looking for.
Code:
sudo pacman -S gcc-fortran
 

f33dm3bits

Gold Member
Gold Supporter
Credits
16,567
When I have time later today, I will do this one more time and that will be the last time.
 

f33dm3bits

Gold Member
Gold Supporter
Credits
16,567
1.Install the needed packages for building:
Code:
sudo pacman -S base-devel gcc-fortran
2. Export the needed variables:
Code:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export FC=/usr/bin/gfortran
export PERL=/usr/bin/perl
export PYTHON=/usr/bin/python
3. Configure and build it:
Code:
cd heasoft-6.28/BUILD_DIR
./configure > config.out 2>&1
make > build.log 2>&1
make install > install.log 2>&1
4. Set the required HEADAS variable.
Code:
export HEADAS=heasoft-6.28/x86_64-pc-linux-gnu-libc2.33
5. Source the initialization script.
Code:
source $HEADAS/headas-init.sh
5. Run the cdemo to verify you can access all the HEADAS commands.
Code:
cdemo
Your path where you extracted heasoft-6.28src.tar.gz will be different, keep that in mind when following these steps and adjust them as needed, this also goes for the HEADAS variable. If you want to not manually have to set those variables each time you login add the following to your ~/.bashrc or ~/.bash_profile or ~/.zshrc.
Code:
export HEADAS=heasoft-6.28/x86_64-pc-linux-gnu-libc2.33
source $HEADAS/headas-init.sh
FYI those are the exact same steps as in the other topic where I explained it to you before. I hope you will actually put some effort into learning and understanding the information in this topic because I am not explaining it again if you ask a third time.
 
Last edited:

raman kumar

Member
Credits
1,985
manjaro% sudo pacman -S base-devel gcc-fortran
[sudo] password for raman:
:: There are 24 members in group base-devel:
:: Repository core
1) autoconf 2) automake 3) binutils 4) bison 5) fakeroot 6) file 7) findutils 8) flex 9) gawk 10) gcc
11) gettext 12) grep 13) groff 14) gzip 15) libtool 16) m4 17) make 18) pacman 19) patch 20) pkgconf
21) sed 22) sudo 23) texinfo 24) which

Enter a selection (default=all):
warning: autoconf-2.71-1 is up to date -- reinstalling
warning: automake-1.16.3-1 is up to date -- reinstalling
warning: binutils-2.36.1-2 is up to date -- reinstalling
warning: bison-3.7.3-1 is up to date -- reinstalling
warning: fakeroot-1.25.3-2 is up to date -- reinstalling
warning: file-5.39-1 is up to date -- reinstalling
warning: findutils-4.8.0-1 is up to date -- reinstalling
warning: flex-2.6.4-3 is up to date -- reinstalling
warning: gawk-5.1.0-1 is up to date -- reinstalling
warning: gcc-10.2.0-6 is up to date -- reinstalling
warning: gettext-0.21-1 is up to date -- reinstalling
warning: grep-3.6-1 is up to date -- reinstalling
warning: groff-1.22.4-4 is up to date -- reinstalling
warning: gzip-1.10-3 is up to date -- reinstalling
warning: libtool-2.4.6+42+gb88cebd5-14 is up to date -- reinstalling
warning: m4-1.4.18-3 is up to date -- reinstalling
warning: make-4.3-3 is up to date -- reinstalling
warning: pacman-5.2.2-4 is up to date -- reinstalling
warning: patch-2.7.6-8 is up to date -- reinstalling
warning: pkgconf-1.7.3-1 is up to date -- reinstalling
warning: sed-4.8-1 is up to date -- reinstalling
warning: sudo-1.9.6.p1-1 is up to date -- reinstalling
warning: texinfo-6.7-3 is up to date -- reinstalling
warning: which-2.21-5 is up to date -- reinstalling
warning: gcc-fortran-10.2.0-6 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (25) autoconf-2.71-1 automake-1.16.3-1 binutils-2.36.1-2 bison-3.7.3-1 fakeroot-1.25.3-2 file-5.39-1
findutils-4.8.0-1 flex-2.6.4-3 gawk-5.1.0-1 gcc-10.2.0-6 gcc-fortran-10.2.0-6 gettext-0.21-1
grep-3.6-1 groff-1.22.4-4 gzip-1.10-3 libtool-2.4.6+42+gb88cebd5-14 m4-1.4.18-3 make-4.3-3
pacman-5.2.2-4 patch-2.7.6-8 pkgconf-1.7.3-1 sed-4.8-1 sudo-1.9.6.p1-1 texinfo-6.7-3 which-2.21-5

Total Download Size: 5.80 MiB
Total Installed Size: 283.30 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
gawk-5.1.0-1-x86_64 1139.2 KiB 10.7 KiB/s 01:46 [########################################] 100%
sed-4.8-1-x86_64 237.9 KiB 113 KiB/s 00:02 [########################################] 100%
file-5.39-1-x86_64 330.7 KiB 92.9 KiB/s 00:04 [########################################] 100%
gettext-0.21-1-x86_64 2.1 MiB 23.5 KiB/s 01:30 [########################################] 100%
grep-3.6-1-x86_64 211.9 KiB 14.9 KiB/s 00:14 [########################################] 100%
gzip-1.10-3-x86_64 77.8 KiB 23.3 KiB/s 00:03 [########################################] 100%
libtool-2.4.6+42+gb88cebd5-14-x86_64 407.4 KiB 28.7 KiB/s 00:14 [########################################] 100%
texinfo-6.7-3-x86_64 1397.6 KiB 19.0 KiB/s 01:13 [########################################] 100%
which-2.21-5-x86_64 15.8 KiB 60.7 KiB/s 00:00 [########################################] 100%
(25/25) checking keys in keyring [########################################] 100%
(25/25) checking package integrity [########################################] 100%
(25/25) loading package files [########################################] 100%
(25/25) checking for file conflicts [########################################] 100%
(25/25) checking available disk space [########################################] 100%
:: Processing package changes...
( 1/25) reinstalling gawk [########################################] 100%
( 2/25) reinstalling m4 [########################################] 100%
( 3/25) reinstalling autoconf [########################################] 100%
( 4/25) reinstalling automake [########################################] 100%
( 5/25) reinstalling findutils [########################################] 100%
( 6/25) reinstalling binutils [########################################] 100%
( 7/25) reinstalling bison [########################################] 100%
( 8/25) reinstalling sed [########################################] 100%
( 9/25) reinstalling file [########################################] 100%
(10/25) reinstalling fakeroot [########################################] 100%
(11/25) reinstalling flex [########################################] 100%
(12/25) reinstalling gcc [########################################] 100%
(13/25) reinstalling gettext [########################################] 100%
(14/25) reinstalling grep [########################################] 100%
(15/25) reinstalling groff [########################################] 100%
(16/25) reinstalling gzip [########################################] 100%
(17/25) reinstalling libtool [########################################] 100%
(18/25) reinstalling texinfo [########################################] 100%
(19/25) reinstalling make [########################################] 100%
(20/25) reinstalling pacman [########################################] 100%
(21/25) reinstalling patch [########################################] 100%
(22/25) reinstalling pkgconf [########################################] 100%
(23/25) reinstalling sudo [########################################] 100%
(24/25) reinstalling which [########################################] 100%
(25/25) reinstalling gcc-fortran [########################################] 100%
:: Running post-transaction hooks...
(1/4) Reloading system manager configuration...
(2/4) Creating temporary files...
(3/4) Arming ConditionNeedsUpdate...
(4/4) Updating the info directory file...
manjaro% export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export FC=/usr/bin/gfortran
export PERL=/usr/bin/perl
export PYTHON=/usr/bin/python
manjaro% cd /home/raman/heasoft-6.28/BUILD_DIR/
manjaro% ./configure > config.out 2>&1

manjaro% make 2>&1 | tee build.log
make: *** No targets specified and no makefile found. Stop.
manjaro% export CC=/home/raman/bin/gcc
export CXX=/home/raman/bin/g++
export FC=/home/raman/bin/gfortran
export PERL=/home/raman/bin/perl
export PYTHON=/home/raman/bin/python
manjaro% cd /home/raman/heasoft-6.28/BUILD_DIR/
manjaro% ./configure 2>&1 | tee config.out
zsh: permission denied: ./configure
manjaro% ./configure > config.out 2>&1
manjaro% make 2>&1 | tee build.log

make: *** No targets specified and no makefile found. Stop.
manjaro% make > build.log 2>&1
manjaro% make install > install.log 2>&1
 

wizardfromoz

Super Moderator
Staff member
Gold Supporter
Credits
14,557
Raman can you please share with us the output of

Code:
echo $SHELL
Wizard
 

f33dm3bits

Gold Member
Gold Supporter
Credits
16,567
What does config.out look like? Running configure generates the Makefile, when the configure fails the Make file won't be created so the build with make will fail.

Also don't use these:
Code:
export CXX=/home/raman/bin/g++
export FC=/home/raman/bin/gfortran
export PERL=/home/raman/bin/perl
export PYTHON=/home/raman/bin/python
Just use the normal system installed binaries:
Code:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export FC=/usr/bin/gfortran
export PERL=/usr/bin/perl
export PYTHON=/usr/bin/python
Check if all of them are installed:
Code:
which gcc
which g++
which gfortran
which perl
which python
 
Last edited:

raman kumar

Member
Credits
1,985
manjaro% echo $SHELL
/bin/zsh
manjaro% which gcc
which g++
which gfortran
which perl
which python
/usr/bin/gcc
/usr/bin/g++
/usr/bin/gfortran
/usr/bin/perl
/usr/bin/python
manjaro%
 

raman kumar

Member
Credits
1,985
manjaro% ls -l /home/raman/heasoft-6.28/BUILD_DIR/configure
-rw-r--r-- 1 raman raman 120244 Mar 21 08:02 /home/raman/heasoft-6.28/BUILD_DIR/configure
manjaro%
 

f33dm3bits

Gold Member
Gold Supporter
Credits
16,567
Try this.
Code:
chmod +x /home/raman/heasoft-6.28/BUILD_DIR/configure
Then run step 3(configure) again and then the remaining steps.
 

raman kumar

Member
Credits
1,985
manjaro% cd /home/raman/heasoft-6.28/BUILD_DIR/
manjaro% ./configure 2.&1 | tee config.out
[1] 4765
zsh: command not found: 1
manjaro% configure: WARNING: you should use --build, --host, --target
checking build system type... Invalid configuration `2.': machine `2.' not recognized
configure: error: /bin/sh ./config.sub 2. failed

[1] + exit 1 ./configure 2.
manjaro% ./configure 2>&1 | tee config.out
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
modified Linux system type is x86_64-pc-linux-gnu-libc2.33
Found component heacore
Did not find component tcltk - skipping tcltk
Did not find component external - skipping external
Found component attitude
Found component heasptools
Found component heatools
Found component heagen
Found component demo
Found component suzaku
Did not find component swift - skipping swift
Did not find component Xspec - skipping Xspec
Found component integral
Found component maxi
Found component nicer
Found component nustar
Found component hitomi
Did not find component xmm - skipping xmm
Did not find component glast - skipping glast
Found component ftools
Did not find component GSSC - skipping GSSC
Found component heasim
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2257: .//hd_scanenv: Permission denied
./configure: line 2729: .//hd_scanenv: Permission denied
./configure: line 2730: .//hd_scanenv: Permission denied
./configure: line 2731: .//hd_scanenv: Permission denied
./configure: line 2732: .//hd_scanenv: Permission denied
configure: error: Unable to determine how to run configure for
manjaro%
 

f33dm3bits

Gold Member
Gold Supporter
Credits
16,567
Try this.
Code:
cd /home/raman
chmod 755 -R heasoft-6.28
Then run step 3(configure) again and then the remaining steps.
 

raman kumar

Member
Credits
1,985
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
cd /home/raman/heasoft-6.28/integral/BUILD_DIR; ./configure --build=x86_64-pc-linux-gnu --with-heatop=/home/raman/heasoft-6.28 --enable-collapse=no --with-heacore=heacore --enable-shared=yes --enable-symbols=no --enable-strip=yes --enable-hera=no --x-libraries=NONE --x-includes=NONE --with-copt= --with-cxxopt= --with-fopt= --enable-ldopt=yes --enable-mac_32bit=no --enable-x=yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
modified Linux system type is x86_64-pc-linux-gnu-libc2.33
configure: error: Unable to guess location of Xspec/BUILD_DIR directory
configure: error: Configure failed in /home/raman/heasoft-6.28/integral/BUILD_DIR!
manjaro% make 2>&1 |tee build.log
make: *** No targets specified and no makefile found. Stop.
manjaro% cd /home/raman
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Latest posts

Top