Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8994393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:25:19+00:00 2026-06-15T23:25:19+00:00

I am following openmpi install file. Firstly, I am a normal user in this

  • 0

I am following openmpi install file.

Firstly, I am a normal user in this linux system. I do not have rights to access /usr/local . If I configure with:

./configure --prefix=/usr/local

make will complain about permission.

Therefore, I put the place to install in some other directory (let’s call it directory ‘A’), and then make install .

I got all the files in the bin and such. I got mpic++, mpicc, etc. in the bin folder and such, in the directory ‘A’.

Now, the thing is when I need to compile other programs:

Compiling MPI Applications
==========================

MPI applications should be compiled using the Open MPI "wrapper"
compilers:

C programs:   mpicc your-code.c
C++ programs: mpiCC your-code.cc    or
              mpic++ your-code.cc   (for case-insensitive filesystems)

This is from the INSTALL file. The thing is bash complains that mpicc command is not found when I type in “mpicc”.

OpenMPI is a dependency for the other programs I am trying to compile, and they invoke OpenMPI by using ‘mpicc’ command.

What can I do in this case?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:25:21+00:00Added an answer on June 15, 2026 at 11:25 pm

    Your folder A needs to be on your PATH environment variable. In bash, you would do:

    export PATH=/path/to/my/folder/A/bin:$PATH
    

    which will let you just type mpicc. Alternatively, you can use the full path as your command:

    /path/to/my/folder/A/bin/mpicc myFile.c
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following this post I have created a WCF client which: Uses ADFS to authenticate
Following leads in this thread and others, I've set up a code block where
I have a loop in my C++/OpenMP code that looks like this: #pragma omp
Following this : $ adb shell # cat /dev/graphics/fb0 > /sdcard/frame.raw # exit How
In the following code the value of xysize gets changed, if I do not
I am new to OpenMP. I have the following code which compiles fine using
I'm running Ubuntu 11.04 64-bit. I have installed OpenMPI. I'm trying to build the
I have the following embarassingly parallel loop //#pragma omp parallel for for(i=0; i<tot; i++)
I have the following command on the build-server as a part of the build
I have the following code in VS2008: int i,j; bool pr = false; #pragma

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.