Compiling [Solved]

Questions about applications and software
Forum rules
Before you post please read this

Compiling [Solved]

Postby Kaye on Wed Mar 11, 2009 9:37 am

Hey everyone,

Because I have a separate /home and /data partition, I want to install the more intensive files of a game (images, audio, etc) on the /data partition. I understand this can be doe by configuring as ./configure --bindir=/usr/games --datadir=/home/jordan/data/Games --prefix=home/jordan/data/Games. However, I'm not 100% confident with compiling just yet. For example, how do I get the packages that the compilation depends on? Can I remove those packages after a successful install? I tried to compile Secret Maryo Chronicles this way, and it worked, but it tries to use ALSA instead of OSS and I don't know how to fix that either. Basically a little help/clarification with compiling would help me out.

Thanks,
Kaye
Last edited by Kaye on Thu Mar 12, 2009 11:21 am, edited 1 time in total.
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Linux Mint is funded by ads and donations.
 

Re: Compiling

Postby Fred on Wed Mar 11, 2009 7:00 pm

Kaye,

I am going to suggest another possible alternative. Is/are the game or games you are interested in, in the repos? Can you find pre-compiled .deb files for them?

If the answer to either of these questions is "yes" I would suggest you install them from the binaries and not compile, until you are more familiar with Linux and it's file structures.

The way to solve the space problem that may come from installing large games would be to use a symlink. With a symlink you could have the actual file or directory that takes up a lot of space on your /data partition and let the program access it through a symlink that is located in the system itself.

Google "Linux symlink" and learn about how it works. Then if you need some help I'll be happy to help you with your particular problem.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Compiling

Postby Kaye on Wed Mar 11, 2009 8:51 pm

Thanks for the suggestion, that seems to be what I need.

How would I go about making the symlink though? Don't the repos just install everything right into the home partition, or does the symlink somehow circumvent this? What I'm looking for is in the repos, so that wouldn't be a problem.
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Re: Compiling

Postby Fred on Wed Mar 11, 2009 9:32 pm

Kaye,

In Linux, and Debian based distros specifically, programs are installed in the /usr folder. The config files for the game would be installed in your /home directory. In the case of games, most game programs go in the /usr/local/games folder. As an example of how this would work, lets say you wanted to put all your games on your data partition. You would move your /usr/local/games folder to your data partition. Then set up a link in your /user/local folder to the /games folder on your data partition. Actual process example:

First check to see if you have a /usr/local/games folder. You may not if you haven't got any games installed. If you don't it simplifies the process somewhat. Create a games folder on your data partition. Then open a terminal and type:

sudo su

cd /usr/local

ln -sf /media/Data/games games

Close terminal. You now have a symlink in your /usr/local folder called games that will be a window, if you want to call it that, into the games folder on your data partition.

Note that I assumed your data partition was mounted in your /media folder as Data. If you already have a /usr/local/games folder you have to move it to your data partition first, before you start the above operation.

Below is the basic structure of the symlink command.

ln -sf target_file/foldername symlink_filename

Hope that helps.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Compiling

Postby Kaye on Thu Mar 12, 2009 2:28 am

Fred,

Thank you! It works perfectly, this is exactly what I needed :)

Thanks again for your continued assistance!
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Re: Compiling

Postby Fred on Thu Mar 12, 2009 2:51 am

Kaye,

You are welcome sir.

By-the-way, what are you doing up at this time of the morning? If you have classes in the morning you need to be getting some sleep, not playing with Linux. :-)

Please put [Solved] in the original topic, if you don't mind.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Compiling [Solved]

Postby Kaye on Thu Mar 12, 2009 11:23 am

No classes until noon today :) Plenty of time for me to sleep no matter how late I stay up. Plus, once I read your solution, I had to try it before I went to bed or else I would've just been wondering if it was going to work or not all night :lol:
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 18 guests