Some WSL install questions

16 views
Skip to first unread message

walt.brainerd

unread,
Jul 4, 2018, 2:52:10 PM7/4/18
to OpenCoarrays
I do have CAF working using WSL, but I still have some questions.

The first is more a Ubuntu question, but I suspect somebody here can answer it:

What is the difference between apt and apt-get? Does it matter?

Here are the main steps of what I have done so far after installing Ubuntu:

sudo apt-get update

sudo apt-get install mpich

git clone https://github.com/sourceryinstitute/opencoarrays.git

cd opencoarrays

./install.sh


install.sh seems to find version 3.1 of mpich even though 3.2 was installed (above).

How do I tell it to find 3.2? The -M option looks like it, but I don't know what to give

as the argument to the option. (The ones in the example in install.sh-usage didn't

seem to work--there are no mpich files in either place.)


[BTW, there is a small typo in install.sh-usage: One of the examples under the -M

option uses -m (lower case).]


The -i (--install-prefix) seems to have no effect. I tried -i ${PWD} in the high-level

directory "opencoarrays" and it still installs in prerequisites/ .... /2.1.0


This works anyway, but I would like to have a little cleaner way of doing all this,

for example, so I didn't have to add that long directory name to my PATH.


I can't get "make uninstall" to do anything, but I guess that is not terribly important.

I can just remove the entire opencoarrays directory.

Damian Rouson

unread,
Jul 5, 2018, 1:16:59 AM7/5/18
to walt.brainerd, OpenCoarrays
On Wed, Jul 4, 2018 at 11:52 AM, walt.brainerd <walt.b...@gmail.com> wrote:
I do have CAF working using WSL, but I still have some questions.

The first is more a Ubuntu question, but I suspect somebody here can answer it:

What is the difference between apt and apt-get? Does it matter?

My understanding is that apt replaces apt-get for most users for most purposes. I have 
yet to find any differences between the two, but I've read that apt is now the recommended 
default.


Here are the main steps of what I have done so far after installing Ubuntu:

sudo apt-get update

sudo apt-get install mpich

git clone https://github.com/sourceryinstitute/opencoarrays.git

cd opencoarrays

./install.sh


install.sh seems to find version 3.1 of mpich even though 3.2 was installed (above).

How do I tell it to find 3.2? The -M option looks like it, but I don't know what to give

as the argument to the option. (The ones in the example in install.sh-usage didn't

seem to work--there are no mpich files in either place.)

Apologies.  The -M argument assumes that all MPI installation files are under a common
root directory.  If mpifort and mpirun are in /usr/bin and /usr/lib, respectively, then the
common root directory would be /usr.


[BTW, there is a small typo in install.sh-usage: One of the examples under the -M

option uses -m (lower case).]

Thanks!   If it's easy for you to submit a pull request with a correction, please do. 


The -i (--install-prefix) seems to have no effect. I tried -i ${PWD} in the high-level

directory "opencoarrays" and it still installs in prerequisites/ .... /2.1.0

-i only controls the location of the final package installed.  If that package is OpenCoarrays,
then all missing prerequisites will be installed in prerequisites/installations.  To ensure that
each prerequisite goes to a different location, the installer must be run separately for just
that prerequisite package installation (e.g., ./install.sh -p mpich -i /opt/mpich). I'm going to 
add a new --install-root option that will facilitate installing all prerequisites and the final
package in a common root path. 


This works anyway, but I would like to have a little cleaner way of doing all this,

for example, so I didn't have to add that long directory name to my PATH.

There should be a setup.sh (and setup.csh) file that can be sourced to set up the 
PATH. 
 


I can't get "make uninstall" to do anything, but I guess that is not terribly important.

I can just remove the entire opencoarrays directory.

We haven't implemented the uninstall option.  Thanks for expressing interest in it,

Damian 

--
You received this message because you are subscribed to the Google Groups "OpenCoarrays" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opencoarrays+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/opencoarrays.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencoarrays/cc57534c-a416-47e1-b371-026b4143b9c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages