Originally Posted by TOOOOOOOOOOOOOL
here is the documentation bc im trying to write an OS for the pi raspberry...here is step seven..
So we've written the code, now to get it onto the pi. Open a terminal on your computer and change the current working directory to the parent directory of the source directory. Type make and then press enter.
The instruction refers to a "source directory", which is a directory where you're supposed to have downloaded the source code you want to compile.
Example: Let's say you've downloaded the file some-program.1.0.tar.gz
, containing source code for version 1.0 of "some-program". Let's assume you've downloaded this file to the /usr/src
directory (a common location for source code).
When you extract the contents of the file with tar xzf some-program.1.0.tar.gz
, the subdirectory some-program.1.0
is created in /usr/src
. This directory, with the absolute path /usr/src/some-program.1.0
is your source directory
for this particular program. In order to change the working directory to this directory, you would type:
However, the instructions seem to contain an error, as you're instructed to change your working directory to "the parent directory of the source directory". The parent of any directory is the directory immediately above it. In the example, that would be /usr/src
. Running make
in that directory is unlikely to accomplish anything, as no source code is present in that directory, but rather in various subdirectories.
I strongly suspect you're supposed to change the working directory to the (base of the) source directory itself (using the cd
command shown above), and then run make
All this is done in a terminal window of some sort. If you're working in a graphical environment, you could open an Xterm window and run the commands there.