Mac Usenet  

Go Back   Mac Usenet > Main Category > Mac Sci-Tech
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


trouble with trying to compile in os x 10.4 terminal any help greatly appreciated

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-28-2006, 03:04 AM
consumer
Guest
 
Posts: n/a
Default trouble with trying to compile in os x 10.4 terminal any help greatly appreciated

So please let me apologize in advance for my extreme ignorance and lack
of experience.
so i'm trying to compile this install.com, it's a program called
charmm(chemical molecular dynamics from harvard). anyway i have all the
files and im trying to install it on my mac g4. supposedly it has no
problem with that. so i enter the following line in terminal and this
is what i get: (note this is not under Bash, but under csh). i've tried
all shells and get the same result.

[kevinkolahi:/c32b1] kevinkol% /c32b1/install.com osx [ huge xlf ]
Mon Feb 27 19:54:00 PST 2006

install.com> Directory /c32b1/build/osx does not exist.
Creating /c32b1/build/osx ...

install.com> Phase 1 completed.
csh: xlf: Command not found.

install.com> Unrecognized CHARMM size specified.
As default, MEDIUM will be used.

install.com> Phase 2 completed.

install.com> Processing CHARMM source on osx...

ar: no archive members specified
usage: ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
ar: no archive members specified
usage: ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
ar: no archive members specified
usage: ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
many times of the previous error,
then i get this:
install.com> The CHARMM executable
/c32b1/exec/osx/charmm is NOT produced.
Check /c32b1/build/osx/osx.log
for installation errors.

install.com> Phase 3 completed.

I have tried installing xcode 2.2 in hopes of using GCC, but after all
that, i'm not sure how to use the GNU compiler. i've really no idea
what to do.
do you guys have any ideas, i'm having a rough time.

  #2  
Old 02-28-2006, 05:41 PM
David C. Stone
Guest
 
Posts: n/a
Default Re: trouble with trying to compile in os x 10.4 terminal any help greatly appreciated

In article <1141099487.967865.180900@j33g2000cwa.googlegroups. com>,
consumer <kevink@berkeley.edu> wrote:

> So please let me apologize in advance for my extreme ignorance and lack
> of experience.
> so i'm trying to compile this install.com, it's a program called
> charmm(chemical molecular dynamics from harvard). anyway i have all the
> files and im trying to install it on my mac g4. supposedly it has no
> problem with that. so i enter the following line in terminal and this
> is what i get: (note this is not under Bash, but under csh). i've tried
> all shells and get the same result.
>
> [kevinkolahi:/c32b1] kevinkol% /c32b1/install.com osx [ huge xlf ]
> Mon Feb 27 19:54:00 PST 2006
>
> install.com> Directory /c32b1/build/osx does not exist.
> Creating /c32b1/build/osx ...
>
> install.com> Phase 1 completed.
> csh: xlf: Command not found.


I was going to take a look, but I see that there is a $600 licence
fee to obtain the source code. Too bad...

gcc 4 (which is the compiler in Tiger) comes with gFortran, if I
remember correctly, not g77 or xlf. It's possible that you missed
a step or switch for ./configure which would set the Makefile up
correctly to use the compiler you have. Check the README files
again carefully. I notice there's also a user forum at
http://www.charmm.org/ ....
  #3  
Old 02-28-2006, 06:41 PM
Dave Seaman
Guest
 
Posts: n/a
Default Re: trouble with trying to compile in os x 10.4 terminal any help greatly appreciated

On Tue, 28 Feb 2006 13:41:54 -0500, David C. Stone wrote:
> In article <1141099487.967865.180900@j33g2000cwa.googlegroups. com>,
> consumer <kevink@berkeley.edu> wrote:


>> So please let me apologize in advance for my extreme ignorance and lack
>> of experience.
>> so i'm trying to compile this install.com, it's a program called
>> charmm(chemical molecular dynamics from harvard). anyway i have all the
>> files and im trying to install it on my mac g4. supposedly it has no
>> problem with that. so i enter the following line in terminal and this
>> is what i get: (note this is not under Bash, but under csh). i've tried
>> all shells and get the same result.
>>
>> [kevinkolahi:/c32b1] kevinkol% /c32b1/install.com osx [ huge xlf ]
>> Mon Feb 27 19:54:00 PST 2006
>>
>> install.com> Directory /c32b1/build/osx does not exist.
>> Creating /c32b1/build/osx ...
>>
>> install.com> Phase 1 completed.
>> csh: xlf: Command not found.


> I was going to take a look, but I see that there is a $600 licence
> fee to obtain the source code. Too bad...


> gcc 4 (which is the compiler in Tiger) comes with gFortran, if I
> remember correctly, not g77 or xlf. It's possible that you missed
> a step or switch for ./configure which would set the Makefile up
> correctly to use the compiler you have. Check the README files
> again carefully. I notice there's also a user forum at
> http://www.charmm.org/ ....


Tiger doesn't come with any kind of Fortran preinstalled, but you can
install gfortran or g95 via fink. You would need to reconfigure charmm
to build with whatever compiler is installed, and there is no guarantee
that it would work.

It is also possible to install IBM's xlf compiler for Mac OS X, but it's
a commercial product and it is not cheap. See
<http://www.absoft.com/Products/Compilers/Fortran/Macintosh/XLF/xlf.html>.


--
Dave Seaman
U.S. Court of Appeals to review three issues
concerning case of Mumia Abu-Jamal.
<http://www.mumia2000.org/>
  #4  
Old 02-28-2006, 10:21 PM
consumer
Guest
 
Posts: n/a
Default Re: trouble with trying to compile in os x 10.4 terminal any help greatly appreciated

Thank you very much for your help. I used Fink Commander this morning
to try to go ahead and install g77/gfortran, but now i get this still:

ar: no archive members specified
usage: ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
BUT, it just hangs here then terminal reads "f771", i suppose i need
some other binary to be installed?

thank you guys again. i'm very close to getting this compiled. I'm just
assuming i'm SUPPOSED to compile this through terminal through csh, and
not bash?

-thanks



Dave Seaman wrote:
> On Tue, 28 Feb 2006 13:41:54 -0500, David C. Stone wrote:
> > In article <1141099487.967865.180900@j33g2000cwa.googlegroups. com>,
> > consumer <kevink@berkeley.edu> wrote:

>
> >> So please let me apologize in advance for my extreme ignorance and lack
> >> of experience.
> >> so i'm trying to compile this install.com, it's a program called
> >> charmm(chemical molecular dynamics from harvard). anyway i have all the
> >> files and im trying to install it on my mac g4. supposedly it has no
> >> problem with that. so i enter the following line in terminal and this
> >> is what i get: (note this is not under Bash, but under csh). i've tried
> >> all shells and get the same result.
> >>
> >> [kevinkolahi:/c32b1] kevinkol% /c32b1/install.com osx [ huge xlf ]
> >> Mon Feb 27 19:54:00 PST 2006
> >>
> >> install.com> Directory /c32b1/build/osx does not exist.
> >> Creating /c32b1/build/osx ...
> >>
> >> install.com> Phase 1 completed.
> >> csh: xlf: Command not found.

>
> > I was going to take a look, but I see that there is a $600 licence
> > fee to obtain the source code. Too bad...

>
> > gcc 4 (which is the compiler in Tiger) comes with gFortran, if I
> > remember correctly, not g77 or xlf. It's possible that you missed
> > a step or switch for ./configure which would set the Makefile up
> > correctly to use the compiler you have. Check the README files
> > again carefully. I notice there's also a user forum at
> > http://www.charmm.org/ ....

>
> Tiger doesn't come with any kind of Fortran preinstalled, but you can
> install gfortran or g95 via fink. You would need to reconfigure charmm
> to build with whatever compiler is installed, and there is no guarantee
> that it would work.
>
> It is also possible to install IBM's xlf compiler for Mac OS X, but it's
> a commercial product and it is not cheap. See
> <http://www.absoft.com/Products/Compilers/Fortran/Macintosh/XLF/xlf.html>.
>
>
> --
> Dave Seaman
> U.S. Court of Appeals to review three issues
> concerning case of Mumia Abu-Jamal.
> <http://www.mumia2000.org/>


  #5  
Old 03-01-2006, 03:08 AM
Dave Seaman
Guest
 
Posts: n/a
Default Re: trouble with trying to compile in os x 10.4 terminal any help greatly appreciated

On 28 Feb 2006 15:21:03 -0800, consumer wrote:
> Thank you very much for your help. I used Fink Commander this morning
> to try to go ahead and install g77/gfortran, but now i get this still:


> ar: no archive members specified
> usage: ar -d [-TLsv] archive file ...
> ar -m [-TLsv] archive file ...
> ar -m [-abiTLsv] position archive file ...
> ar -p [-TLsv] archive [file ...]
> ar -q [-cTLsv] archive file ...
> ar -r [-cuTLsv] archive file ...
> ar -r [-abciuTLsv] position archive file ...
> ar -t [-TLsv] archive [file ...]
> ar -x [-ouTLsv] archive [file ...]
> BUT, it just hangs here then terminal reads "f771", i suppose i need
> some other binary to be installed?


The purpose of the "ar" command is to build libraries. The message says
you called "ar" but didn't provide the names of any object files to add
to the library. I suspect this was done automatically by a Makefile,
which means you need to do some editing.

It has been a while since I looked at CHARMm, but I remember once looking
at a version that had a variety of Makefiles for various systems. One
was called Makefile_osx and was intended for use under Mac OS X with
either the GNU compilers or xlf. There should be a documentation folder
that includes instructions on making and installing the app.

> thank you guys again. i'm very close to getting this compiled. I'm just
> assuming i'm SUPPOSED to compile this through terminal through csh, and
> not bash?


Assuming you are using make(1), it doesn't particularly matter what shell
you are running when you type the command. The make program uses sh by
default to interpret the commands that it generates.


--
Dave Seaman
U.S. Court of Appeals to review three issues
concerning case of Mumia Abu-Jamal.
<http://www.mumia2000.org/>
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT. The time now is 12:19 PM.


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Search Engine Friendly URLs by vBSEO 2.0(RC6)