Compiling issue with Ubuntu 12.04

Discussion of compilation configuration and issues

Compiling issue with Ubuntu 12.04

Postby zemperor » Sun Sep 01, 2013 5:26 pm

iHello, I am trying to complie GMAT in Ubuntu 12.04 and when I try
Code: Select all
./build.sh -arch [x86 | x64]
it tells me Permission Denied. I assume it is because i do not have the proper user privleges but when I try
Code: Select all
sudo ./build.sh -arch [x86 | x64]
It tells me no such command exists. I am unsure as to how to go from here.
zemperor
 
Posts: 1
Joined: Fri Aug 30, 2013 5:30 pm

Re: Compiling issue with Ubuntu 12.04

Postby jjkparker » Mon Sep 30, 2013 12:13 pm

It's likely that a particular command inside of build.sh is failing. Can you look inside that file, can you tell which command is failing?
Joel J. K. Parker
Flight dynamics engineer, GMAT team
http://gmatcentral.org
jjkparker
 
Posts: 617
Joined: Thu Jan 07, 2010 9:48 pm
Location: NASA Goddard Space Flight Center, Greenbelt, MD

Re: Compiling issue with Ubuntu 12.04

Postby jjkparker » Mon Sep 30, 2013 9:37 pm

Also, make sure you're choosing one of the "arch" options, not both of them. For example, try using this command if you're using a 32-bit OS:

Code: Select all
sudo ./build.sh -arch x86


Or this one for a 64-bit OS:

Code: Select all
sudo ./build.sh -arch x64
Joel J. K. Parker
Flight dynamics engineer, GMAT team
http://gmatcentral.org
jjkparker
 
Posts: 617
Joined: Thu Jan 07, 2010 9:48 pm
Location: NASA Goddard Space Flight Center, Greenbelt, MD

Re: Compiling issue with Ubuntu 12.04

Postby kwanrj » Sat Nov 02, 2013 7:45 pm

I'm just starting to build GMAT on Ubuntu 12.04 now, and saw the same problem on both the SVN trunk and R2013a. I got the exact same message. In both cases, it looks like the script has read/write, but not execute permissions. That is,

Code: Select all
$ ls -l build.sh
-rw-rw-r--  ... build.sh


The easy fix to this is:
Code: Select all
chmod +x build.sh

Alternatively, run it as something like:
Code: Select all
sh ./build.sh -arch x86

There should be no reason to run "sudo". Doing so, I get much further into to build...
kwanrj
 
Posts: 2
Joined: Sat Nov 02, 2013 7:27 pm


Return to Compiling GMAT

Who is online

Users browsing this forum: No registered users and 2 guests