LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problems in running /configue (https://www.linuxquestions.org/questions/linux-newbie-8/problems-in-running-configue-888615/)

shahinab 06-27-2011 01:17 PM

problems in running /configue
 
Hi,
I'm trying to install gridlab-d on my machine. After running the following command:
shahinab@ecel236-01:~/Program Files/GL/gridlab-d/trunk$ ./configure

I got the remaining part:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for g++... g++
checking whether the C++ compiler works... no
configure: error: in `/home/shahinab/Program Files/GL/gridlab-d/trunk':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
rm: cannot remove `core': Is a directory

What do you think?

business_kid 06-27-2011 01:37 PM

Quote:

checking whether the C++ compiler works... no
configure: error: in `/home/shahinab/Program Files/GL/gridlab-d/trunk':
configure: error: C++ compiler cannot create executables
Install a C++ compiler. Probably you didn't install enough of gcc. BTW, /home/shahinab/Program Files/GL/gridlab-d/trunk seems a fairly strange directory to be compiling in. did you make the Program Files/ directory or is it part of something else?

shahinab 06-27-2011 01:52 PM

./configure
 
Yes, I made the Program Files/ directory .

MTK358 06-27-2011 02:18 PM

Assuming you're using Ubuntu:

Code:

apt-get install build-essential

shahinab 06-27-2011 03:31 PM

installing build-essential
 
This is the message I get while trying to install build-essential.

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

knudfl 06-27-2011 04:04 PM

The Ubuntu command is :


sudo apt-get install build-essential


All times are GMT -5. The time now is 02:02 AM.