ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I Wrote a program and I want to set up the install . I have the binary,a glade file that has some icons that go with it,and some data files. I was looking at some other stuff on the system and they put it all in different locations. Would it be too sloppy to find one directory and stick it in ? Because that's the way it runs in the source directory because it's wrote into the source code . So if I rewrite it to run from the install it's not going to run without installing it, if I'm testing the source code.Right?
For yourself only? Normally I put those in /usr/local/bin (only if it's done.) The Glade stuff should stay in a working directory unless the program needs some of it.
ta0kira
PS At second glance, it looks like the program needs something in the directory it's built in. Correct?
It's a release version. I've never installed my own code .Everything works in the source directory.The binary needs the glade file. I'm not sure how I would move the glade file or parts of it either because I used anjuta and autoconf to generate the make file.I don't understand that stuff very well yet. So it would be easier to dump it all in one directory ,but it's a release so I want make it nice as I can.
Normally, you would want to put executables in ${prefix}/bin, library files into ${prefix}/lib, headers in ${prefix}/include, and resource files and such into ${prefix}/share/${progname}. If you do it correctly, you will let the configure script tell you where prefix is (when most individual configure packages, prefix is /usr/local, but when most distros configure packages, prefix is usually /usr). In fact, you might use the autoconf variable $(datadir) for your resource and data location. You can use the make system to define a macro which hardcodes any locations into sourcecode.
It lets you set the directory where different parts of your project go to when you do make install. So I can install the binary to /usr/bin but it needs all the other parts. A lot of programs have parts in /usr/share. Could I have the installer put the whole thing in /usr/local/bin/myprogram ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.