# localedir is not a legitimate directory

This topic is 1469 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Compiling in 13.04 I get:

michael@michael-Ubuntu:~/crrcsim-0.9.12$make cd . && /bin/bash /home/michael/crrcsim-0.9.12/missing --run automake-1.11 --foreign locale/Makefile.am:5: localedir' is not a legitimate directory for DATA' make: *** [Makefile.in] Error 1 michael@michael-Ubuntu:~/crrcsim-0.9.12$

Any ideas on how to compile? Thanks for help

##### Share on other sites

Compiling what? Version 13.04 of what? Is this your own program? If so, can you post a minimal source and make file that demonstrates the issue?

##### Share on other sites

I'm going to guess that the version number is the version of his OS, Ubuntu Linux, irrelevant to the process as it may or may not be.

I searched Google for "crrcsim" and the error message, and I found an Italian site that mentions the same problem with the same program. See if this helps:

Edited by Ectara

##### Share on other sites

Thanks, yes I saw that but it doesn't help to remove automake. Anyway I might skip it, as crrcsim is somehow basic (cough) and stick to realflight. (if only I wouldn't need to reboot...)

##### Share on other sites

I don't quite understand. Are you trying to uninstall the automake toolchain, and install a different version? You would use your package manager for that. Are you trying to remove the files created by automake? Perhaps something like this would help: http://stackoverflow.com/questions/2936116/autotools-how-to-cleanup-files-created-by-configure-in-lighttpd-project

What have you tried so far, and how didn't it work?

##### Share on other sites

locale/Makefile.am:5: localedir' is not a legitimate directory for DATA'

Hmm, seeing the code would help. We are not prescient.

My guess is line 5 of Makefile.am contains text like "locale_DATA = ...." and the localedir variable has not been defined. Just a guess, because of the dearth of actual information in the question.

The i18n infrastructure of some projects gets a little weird when integrating with the autotools. There may be a locale/Makefile.am.in file that needs to get preprocessed before the autotools get run. You could check that, too.

If there is a file called 'autogen.sh' present, you should try running that to refresh the build infrastructure to match the tool versions on your system.

##### Share on other sites

michael@michael-Ubuntu:~/Downloads/crrcsim-0.9.12$./autogen.sh Removing old aclocal.m4... Running autoheader... Running aclocal... Running automake... locale/Makefile.am:5: localedir' is not a legitimate directory for DATA' Running autoconf... -------------------------------------------- Success, now you're ready to run ./configure -------------------------------------------- michael@michael-Ubuntu:~/Downloads/crrcsim-0.9.12$

Never mind. Now I have a look at running Realflight with Wine as I've my 2 RC planes modeled in there.

Anyway would be interesting to see the solution, you could download crrcsim from sourceforge.