File organization, /bin and /src


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers File organization, /bin and /src
# 1  
Old 08-14-2008
File organization, /bin and /src

The /src file is obviously designed to contain source code, so when I download programs, I should put them in /src (because they contain the source files + the executables)? What do most people do with the executables? Do they copy them to /bin, make links to them in /bin, or just leave them in /src? I am new to Linux, but I would like to start doing this correctly. Thanks!
# 2  
Old 08-14-2008
If you download something, best place it somewhere, where no one accidentally uses it, deletes it or something.

/src is no file but a directory and it is no standard directory on every Unix/Linux.

Depending on what you downloaded, source code, binaries, whatever, you'll have to read the docu for it, before you start putting them somewhere in the filesystem. Many program packages use either the built in package handler of your OS, like rpm or whatever.
Some others that come as source code often have to be configured to your needs, and then compiled using "make".
This info is a very general overview. You have to read the docu if you are unsure what to do next after download.
# 3  
Old 08-14-2008
I'd go even further, and recommend that as a regular user, you simply keep stuff in your home directory, and let the designated system administration interface (dpkg or rpm if you're on Debian or Red Hat, respectively) deal with the rest of the disk.
# 4  
Old 08-14-2008
Hi, thanks for the replies. I'll try to be more specific because I think my first post was quite vague. Sorry.

In my home directory, I have the folders ~/bin and ~/src. When I compile a program such as BLAST from source code, it seems that I should keep the BLAST folder in the ~/src directory because it contains the program's source code. Within the BLAST directory, there is a ./bin folder that contains the executables. I was simply wondering -- is it common practice to move these to my ~/bin directory, to make links to them in my ~/bin directory, or to just keep them in my ~/src directory and to execute them from there? If the answer to this question varies depending on the program, I'll just try to do whatever seems best. It is not very important, but I was just curious what the standard practice is in the Unix world. Thanks!
# 5  
Old 08-14-2008
Common practice is that after you do
Code:
configure
make
make install

Last step would place the stuff either in it's default directories or those you have give with "configure".

If this all is not missing you'll have to check what the binaries you compiled depend on, maybe libraries, config files, whatever.
I usually put such programs under /usr/local/<name of that prog> and extend my PATH.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cp: cannot stat ‘src/last??’: No such file or directory

Good day. I am trying to install the latest version of LAST program (last.cbrc.jp) on my Windows64bit using Cygwin64. I successfully downloaded it and followed the instructions on how to install it. However, when I tried to run the command "make install prefix=~", I got this error, as shown... (0 Replies)
Discussion started by: nicole_john_
0 Replies

2. AIX

Redistribution bin required for AIX. j7r164redist.7.1.0.25.bin

Hi, I am planning to install a version of Informatica on my AIX box. It requires a specific java build in pap6470_27sr2-20141101_01(SR2). The current link for IBM 64-bit SDK for AIX®, JavaTM Technology Edition, Version 7 Release 1 has a more recent version in j7r164redist.7.1.0.75.bin. Is... (4 Replies)
Discussion started by: meetpraveens
4 Replies

3. UNIX for Dummies Questions & Answers

Recursive file organization?

Does anyone have any idea of how I can make something like the code below run recursively? I'll run it on a tree of directories all with different names and all containing a sequence of .dpx files. I've tried to do it using find and exec but can't get it to work right. What it needs to do is... (4 Replies)
Discussion started by: scribling
4 Replies

4. Shell Programming and Scripting

Help with re-organization data

Input file DATA2.2 POSITION_152486.2 COLUMN689699.2 DATA2.2 ROW00000342066 UNIT00000342313 DATA7.2 POSITION_017891.4 COLUMN060361.4 DATA7.2 ROW00000379319 UNIT00000368623 DATA7.2 ROW00000421241 UNIT00000400736 DATA8.1 POSITION_153254.2 COLUMN694986.2 DATA8.1 ROW00000379288... (1 Reply)
Discussion started by: perl_beginner
1 Replies

5. Shell Programming and Scripting

mail outside organization

Hi All, Through mailx command, we are able to send mail to all users within the organization but not outside the organization. I need to work with Admin to configure it. Can someone tell me on what are the things needs be done to enable it. i have checked the resolv.conf, it shows only... (1 Reply)
Discussion started by: ace_friends22
1 Replies

6. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

7. UNIX for Dummies Questions & Answers

fuser: difference with bin/sh and bin/ksh shell script

Hi, I have a problem I don't understand with fuser. I launch a simple shell script mysleep.sh: I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted: mysleep: Then I modify my script switching from #!/bin/sh to #!/bin/ksh I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies

8. UNIX for Dummies Questions & Answers

Theory question about the organization of a UNIX file...

Hi, I am quite sure that I am posting a question in the very wrong forum but I have to give a try. It's a question about UNIX theory. I don't have any clue of how to solve this question. If someone could kindly provide some good references or give me the formulas, it will be really... (1 Reply)
Discussion started by: ti_ma
1 Replies

9. AIX

Organization in a big file system

hello I have a file system with 737 Go of data (oracle) I want to add 230 Go. IBM technician says to me that it's better (for performance) to backup the file system, rebuild it with the new 250Go and restore it.... 737 Go to backup, it is not very simple... !!!! You confirm what says the... (6 Replies)
Discussion started by: pascalbout
6 Replies

10. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies
Login or Register to Ask a Question