vtsuperdarn / davitpy

DEPRECATED The DaViT Python project
http://vtsuperdarn.github.com/davitpy/
GNU General Public License v3.0
37 stars 59 forks source link

Missing makefiles? #83

Closed wiltbemj closed 9 years ago

wiltbemj commented 10 years ago

Hi, Just trying to install the tools on my Mac. I've done the github pull, but when I run the mastermake command it fails because it cannot find the makefile in the igrf, raydarn directories. I'm particularly interested in the AAGCM portion of the tools. Is it possible to get the makefile for these models?

Thanks, Mike

asreimer commented 10 years ago

Hi @wiltbemj. Thanks for your interest in DaViTpy. Could you provide us with some more information for debugging purposes?

My suspicion is that an environment variable (DAVITPY) is not being set properly or at all. Can you tell me if you have a line like this in your .bash_profile: source /path/to/davitpy/directory/davitpy/profile.mac and can you please tell me what the result of running echo $DAVITPY in a fresh terminal is? mastermake will fail if the DAVITPY is not set properly.

FYI, I run a linux machine so I cannot test any of the mac specific stuff. A few of the other devs will have to help.

wiltbemj commented 10 years ago

Hi,   My DAVITPY variable is set correctly as you can see from the command below.  The issue is that the makefiles in the directories I listed the makefiles do not exist.

Take care, Mike

[dhcp-wlan-216-240:pyLTR/pyLTR/SolarWind] wiltbemj% cd $DAVITPY/ [dhcp-wlan-216-240:~/src/davitpy] wiltbemj% ls LICENSE.txt models/ README.md profile.bash SUPERDARN_DATA_FILES_EXPLAINED.md profile.mac bin/ pydarn/ docs/ setup.py gme/ tables/ install/ test.py mastermake* utils/ [dhcp-wlan-216-240:~/src/davitpy] wiltbemj%

Michael Wiltberger, Ph.D     NCAR/HAO             3080 Center Green         Boulder, CO 80301         Ph: (303)497-1532         Fx: (303)497-2180         email: wiltbemj@ucar.edu    

There are only 10 types of people: those who understand binary and those who don't.

On August 27, 2014 at 9:06:23 AM, asreimer (notifications@github.com) wrote:

Hi @wiltbemj. Thanks for your interest in DaViTpy. Could you provide us with some more information for debugging purposes?

My suspicion is that an environment variable (DAVITPY) is not being set properly or at all. Can you tell me if you have a line like this in your .bash_profile: source /path/to/davitpy/directory/davitpy/profile.mac and can you please tell me what the result of running echo $DAVITPY in a fresh terminal is? mastermake will fail if the DAVITPY is not set properly.

FYI, I run a linux machine so I cannot test any of the mac specific stuff. A few of the other devs will have to help.

— Reply to this email directly or view it on GitHub.

asreimer commented 10 years ago

Ya I noticed there aren't any makefiles in those directories, but it has never been a problem on any of the Linux systems I've tested on. I didn't set up the master make script. The most common problem is that people don't have the DAVITPY variable set.

You didn't verify that you are sourcing the profile.mac file in your .bash_profile. If that isn't the problem, you will have to wait for advice from a dev with access to a Mac.

Cheers

asreimer commented 10 years ago

Actually it would be very helpful to have a copy of the output from mastermake if you could provide it.

Thanks @wiltbemj!

ecousins commented 10 years ago

Hi Mike, I also noticed the makefiles are missing. I'm guessing it hasn't been a problem for the Linux users since the precompiled libraries work. I was able to find makefiles in the master-old branch. I'm not sure why they were removed from the master branch.

asreimer commented 10 years ago

All of the precompiled libraries are deleted on each invocation of the mastermake script using make clean. There are a few files that hang around but are completely over written on compile.

I've poked around in the code and found that in order to install davitpy we might not need to run mastermake since the python setup.py install command compiles all of the tools anyway. Basically, right now we are running mastermake to compile the libraries and then compiling them again using the python setup.py command. I haven't had time yet to fully implement any changes but I did manage to install a completely fresh copy of davitpy without mastermake on a machine where it had not yet been installed.

The reason for the "missing" makefiles is that they aren't actually required for davitpy to install. If you comment out the lines in the mastermake script that cause the script to fail (odd that it fails on Mac but not Linux...), then everything should compile and install fine.

If it doesn't, post the output of what you get here and I can have a look. The more information the better.

asreimer commented 9 years ago

mastermake was removed in https://github.com/vtsuperdarn/davitpy/pull/112

"Old" makefiles can be found in the master-old branch.