Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing 1.8.4 #59

Open
laytonjbgmail opened this issue Nov 1, 2020 · 7 comments
Open

Error installing 1.8.4 #59

laytonjbgmail opened this issue Nov 1, 2020 · 7 comments
Assignees

Comments

@laytonjbgmail
Copy link

Hello,

I tried installing 1.8.4 using the command,

REMORA_INSTALL_PREFIX=/home/laytonjb/bin/remora-1.8.4 ./install.sh

and I got an error:

ar rvs libsyscom.a common.o ioconf.o
ar: creating libsyscom.a
a - common.o
a - ioconf.o
gcc -o mpstat -g -O2 -Wall -Wstrict-prototypes -pipe -O2 mpstat.o librdstats_light.a libsyscom.a -s
Installing mpstat ...
./install.sh: 82: ./install.sh: Syntax error: Bad fd number
./install.sh: 77: [: unexpected operator
./install.sh: 88: ./install.sh: Syntax error: Bad fd number
./install.sh: 83: [: unexpected operator
./install.sh: 91: ./install.sh: Syntax error: "&" unexpected

BTW I'm using gcc -7.5.0 and gfortran 7.5.0 (this is Ubuntu 18.04).

In looking at the install.sh script is 1.8.4 targeted only at either Intel MPI or MVAPICH2?

Thanks!

Jeff

@milfeld milfeld self-assigned this Nov 12, 2020
@milfeld
Copy link
Collaborator

milfeld commented Nov 12, 2020

Hi Jeff,
Thanks for reporting the problem.
Some external shell executions [e.g. x=$( ....)] were using the redirection " >& file" in install.sh.
This is offensive to some shells and results in the "Bad fd number".
In the install.sh script these were changed to >file 2>&1. This should fix the install problem.
FYI: if you don't have MPI or Lustre/IB you should truncate the modules list in src/config/modules
(after downloading and before executing install.sh) to have just this list:
cpu,CPU
memory,MEMORY
numa,NUMA
eth,NETWORK

You could also include
power,POWER
temperature,TEMPERATURE
but I'm not sure if these are generically running on other systems.

@laytonjbgmail
Copy link
Author

I grabbed the new install.sh and no joy. The error looks similar as before:

ar rvs libsyscom.a common.o ioconf.o
ar: creating libsyscom.a
a - common.o
a - ioconf.o
gcc -o mpstat -g -O2 -Wall -Wstrict-prototypes -pipe -O2 mpstat.o librdstats_light.a libsyscom.a -s
Installing mpstat ...
./install.sh: 79: [: 0: unexpected operator
./install.sh: 85: [: 0: unexpected operator
./install.sh: 93: ./install.sh: Syntax error: "&" unexpected

I haven't tried changing the modules list - I'm going to try this next.

Thanks for the help!

Jeff

@milfeld
Copy link
Collaborator

milfeld commented Nov 12, 2020 via email

@laytonjbgmail
Copy link
Author

laytonjbgmail commented Nov 12, 2020 via email

@milfeld
Copy link
Collaborator

milfeld commented Nov 13, 2020

Jeff,
I just booted a machine with 20.0 Ubuntu from a memory drive, installed C and found that Ubuntu's /bin/sh doesn't like
a few things (using [[ instead of [ and using == instead of = within []). So, I changed install.sh to use /bin/bash, and
changed all single brackets to double brackets, for consistency. The install.sh script will not give those errors any more.

@laytonjbgmail
Copy link
Author

laytonjbgmail commented Nov 13, 2020 via email

@milfeld
Copy link
Collaborator

milfeld commented Nov 13, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants