Compiling and Installing on Linux

From PEBL WIKI
Jump to: navigation, search

(Originally contributed by Jesse B Rowlandson)

[edit] Compilation and installation of PEBL 0.14 on Linux

The following should be noted:

I am running Sparky Linux (which is Debian testing.) This is only a guide, and comes with no warranty. I may have missed some depends

[edit] Start with depends:

For a shell window: this will pull down a bunch of extra dev packages.

   >sudo apt-get install  libsdl1.2-dev libsdl-image1.2-dev
     libsdl-ttf2.0-dev libsdl-gfx1.2-dev libsdl-net1.2-dev libpng12-dev

These are the files you want to do it manually.

   libsdl1.2-dev
   libsdl-image1.2-dev
   libsdl-ttf2.0-dev
   libsdl-gfx1.2-dev
   libsdl-net1.2-dev
   libpng12-dev

Once you have them, get a copy of the svn:

which i used

   $ svn checkout http://svn.code.sf.net/p/pebl/code-0/trunk pebl-code-0


Then to the pebl-code-0 directory

   name@network:/pebl-code$ make


if all goes well then:

   # make install

This should install pebl into /usr/local/bin/pebl and /usr/local/share/pebl. You can run a PEBL script at this point from the command line

$ pebl myscript.pbl


If you'd like the test battery to be installed in Documents\pebl-exp.0.14\, then do:

$ pebl –-install


If you want to launch the pebl launcher, use the following command from anywhere: $ pebl launcher.pbl

This will open the launcher, and will default to the working directory Documents\pebl-exp.0.14 (or whatever version you are running).

If you want to add this to your launcher, you can create a desktop file. Create a text file named something like pebl.desktop, and copy these lines into it:

[Desktop Entry]
Version=0.14
Name=PEBL
Comment=Launch PEBL Launcher
Exec=/usr/local/bin/pebl /usr/local/share/pebl/pebl-lib/launcher.pbl
Icon=/usr/local/share/pebl/media/images/pebl.png
Terminal=false
Type=Application
Categories=Utility;Application;

Most linux file browsers will recognize this and let you double-click to launch the browser. You should be able to drag this to a toolbar (in gnome, unity, kde, etc) and have it launch from there with a single click.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox