Alright, so I'm gonna pretend you're completely new to Linux as I was and try to compile a simple program.
A lot of programs need to be compiled from the source (for some reason). I think it's because if they want the program to work on different architectures (such as ARM, PowerPC devices etc) as well as a desktop computer.
I'm gonna assume you've tried programming on Windows and at least know how to use CMD as the process on linux is almost the same.
Anyway, you need to add the debian repository URL to the system (this lets you download tons of libraries and plugins etc just through the command line!).
I didn't figure this out to late and I was pulling my hair out wondering why apt-get couldn't ever find jack shit
First of all open the terminal, and type "SU" and type your password.
This makes it run in ROOT (Linux's version of an admin account).
You'll know if it's in ROOT if it has a # instead of a $ at the end.
Type in whatever notepad program you're using (qedit is the default I think).
And go to the root of the harddrive and open
Then open your web browser go to: https://www.debian.org/mirror/list
and find a mirror closest to your country (DON'T PICK AUSTRALIA! IT'S SLOW AS FUCK! Use Japan instead if you're Australian like me!).
copy the URL and put a "deb" at the start and put "jessie main" at the end.
You and also do it a 2nd time if you want with "deb-src" if you want.
You should have something like this in your sources.list
If you want an easier way of doing it, check out this generator. It's what I use:
https://debgen.simplylinux.ch/generate.php
Anyway save that file afterwards.
_______________________
After all that's done, now type:
This will update the list of programs and libraries so your computer knows where to download these files.
Now Apt-get is going to be your best friend. It you just have to type:
Whenever you need to download something. It's usually always on there.
_______________________
Now before you can compile ANYTHING, you will have to install the compiler. You do this by typing:
It should install a lot stuff. But this allows the "make" command and such to work.
Now we need to install the PCSX-R libraries, they never fucking mentioned this anywhere in the README, I had to dig an obscure thread on a forum to find this.
Anyway, you have to type:
That should install a fuckton of libraries. The good thing about this is that if other programs use the same libraries, you won't have to install anything later.
_______________________
Now I'm guessing you've already downloaded the source code from the PCSXR website, if you haven't do it now. It should be some sort of tar.bz2 file.
Extract it and then go back in the terminal and browse to where you extracted.
Example:
REMEMBER LINUX USES CASE SENSITIVE FILES AND FOLDERS!
Anyway, you have to make a "configure" file if it isn't already there.
PCSX-R already has this as an SH script. So just run (yes the .\ is necessary for some reason):
It should make a configure script afterwards, if not just open autogen.sh in a text editor and type the same commands manually.
If you get a permission error, it might be that the file doesn't have execute permissions.
A quick solution is to type:
You may or may not need to use a root terminal for CHMOD.
Now you can run the configure script, just type:
and it should do all that for you.
Now we can actually build and install the program!
Just type:
HOPEFULLY it should work now, hurray if it did!
You can now run PCSXR by typing "pcsxr" in the terminal or something.
When you "MAKE" programs, it usually puts it in "usr\local\bin" or in "usr\games" somewhere like that.
Now the process is usually the same for the majority of programs, it's just a matter of fact of finding the
"apt-get install WHATEVERTHEFUCKINGLIBRARYISTHATTHEYDON'TFUCKINGTELLYOUEVER" beforehand.
Hopefully this helped you, have fun! (Not really, it's tedious)
A lot of programs need to be compiled from the source (for some reason). I think it's because if they want the program to work on different architectures (such as ARM, PowerPC devices etc) as well as a desktop computer.
I'm gonna assume you've tried programming on Windows and at least know how to use CMD as the process on linux is almost the same.
Anyway, you need to add the debian repository URL to the system (this lets you download tons of libraries and plugins etc just through the command line!).
I didn't figure this out to late and I was pulling my hair out wondering why apt-get couldn't ever find jack shit
First of all open the terminal, and type "SU" and type your password.
This makes it run in ROOT (Linux's version of an admin account).
You'll know if it's in ROOT if it has a # instead of a $ at the end.
Type in whatever notepad program you're using (qedit is the default I think).
And go to the root of the harddrive and open
Code:
etc\apt\sources.list
Then open your web browser go to: https://www.debian.org/mirror/list
and find a mirror closest to your country (DON'T PICK AUSTRALIA! IT'S SLOW AS FUCK! Use Japan instead if you're Australian like me!).
copy the URL and put a "deb" at the start and put "jessie main" at the end.
You and also do it a 2nd time if you want with "deb-src" if you want.
You should have something like this in your sources.list
Code:
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#
###### Debian Main Repos
deb http://ftp.jp.debian.org/debian/ jessie main
deb-src http://ftp.jp.debian.org/debian/ jessie main
If you want an easier way of doing it, check out this generator. It's what I use:
https://debgen.simplylinux.ch/generate.php
Anyway save that file afterwards.
_______________________
After all that's done, now type:
Code:
apt-get update
Now Apt-get is going to be your best friend. It you just have to type:
Code:
apt-get install {PLUGINNAME}
_______________________
Now before you can compile ANYTHING, you will have to install the compiler. You do this by typing:
Code:
apt-get install build-essential
Now we need to install the PCSX-R libraries, they never fucking mentioned this anywhere in the README, I had to dig an obscure thread on a forum to find this.
Anyway, you have to type:
Code:
apt-get install subversion autoconf intltool libtool libsdl1.2-dev libgtk-3-dev libxv-dev libxtst-dev nasm
That should install a fuckton of libraries. The good thing about this is that if other programs use the same libraries, you won't have to install anything later.
_______________________
Now I'm guessing you've already downloaded the source code from the PCSXR website, if you haven't do it now. It should be some sort of tar.bz2 file.
Extract it and then go back in the terminal and browse to where you extracted.
Example:
Code:
cd Downloads\pcsxr
Anyway, you have to make a "configure" file if it isn't already there.
PCSX-R already has this as an SH script. So just run (yes the .\ is necessary for some reason):
Code:
.\autogen.sh
If you get a permission error, it might be that the file doesn't have execute permissions.
A quick solution is to type:
Code:
chmod +x ./autogen.sh
Now you can run the configure script, just type:
Code:
.\configure
Now we can actually build and install the program!
Just type:
Code:
make
make install
HOPEFULLY it should work now, hurray if it did!
You can now run PCSXR by typing "pcsxr" in the terminal or something.
When you "MAKE" programs, it usually puts it in "usr\local\bin" or in "usr\games" somewhere like that.
Now the process is usually the same for the majority of programs, it's just a matter of fact of finding the
"apt-get install WHATEVERTHEFUCKINGLIBRARYISTHATTHEYDON'TFUCKINGTELLYOUEVER" beforehand.
Hopefully this helped you, have fun! (Not really, it's tedious)
Last edited: