How to install the required components in Linux without root permission?

Hi,

I have some stupid question as following, please feel free to correct me if
any inappropriate.

  1. how to install sdl 1.2 for developing application using sdl, which parts
    is required?
    source code?
    Runtime Libraraies?
    Development Libraries?

  2. On a linux server, I don’t a root permission, can I install them in my
    local directory? I’ve tried rpm package, which seems to need root
    permission because I got the error as “error: can’t create transaction lock
    on /var/lib/rpm/__db.000”. Can I use source code to build a library? I’d
    appreciate if you could provide a procedure.

  3. How to distribute it? Must it be with runtime libraries?

Thanks,
Joe

You could grab the source and do a ./configure && make
The headers will be in /path/to/SDL/include, and libraries in
/path/to/SDL/build

-AlexOn Fri, May 18, 2012 at 4:05 AM, sword9 <joe.psc at gmail.com> wrote:

Hi,

I have some stupid question as following, please feel free to correct me
if any inappropriate.

  1. how to install sdl 1.2 for developing application using sdl, which
    parts is required?
    source code?
    Runtime Libraraies?
    Development Libraries?

  2. On a linux server, I don’t a root permission, can I install them in my
    local directory? I’ve tried rpm package, which seems to need root
    permission because I got the error as “error: can’t create transaction lock
    on /var/lib/rpm/__db.000”. Can I use source code to build a library? I’d
    appreciate if you could provide a procedure.

  3. How to distribute it? Must it be with runtime libraries?

Thanks,
Joe


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Alex,

Thanks for your answer. I’ve install SDL in my local diretory.
One more question, how to build the example code under “test directory”?

Thanks,
JoeOn Fri, May 18, 2012 at 11:35 PM, Alex Barry <alex.barry at gmail.com> wrote:

You could grab the source and do a ./configure && make
The headers will be in /path/to/SDL/include, and libraries in
/path/to/SDL/build

-Alex

On Fri, May 18, 2012 at 4:05 AM, sword9 <@sword9> wrote:

Hi,

I have some stupid question as following, please feel free to correct me
if any inappropriate.

  1. how to install sdl 1.2 for developing application using sdl, which
    parts is required?
    source code?
    Runtime Libraraies?
    Development Libraries?

  2. On a linux server, I don’t a root permission, can I install them in my
    local directory? I’ve tried rpm package, which seems to need root
    permission because I got the error as “error: can’t create transaction lock
    on /var/lib/rpm/__db.000”. Can I use source code to build a library? I’d
    appreciate if you could provide a procedure.

  3. How to distribute it? Must it be with runtime libraries?

Thanks,
Joe


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

gcc .c -L /home//path/to/SDL/build
-I/home//path/to/SDL/include -lSDL -lSDLmain -o sdl_example

That should do it, however, I can’t test it right now because I’m not on
linux.

Take care,
-AlexOn Mon, May 21, 2012 at 3:05 AM, sword9 <joe.psc at gmail.com> wrote:

Alex,

Thanks for your answer. I’ve install SDL in my local diretory.
One more question, how to build the example code under “test directory”?

Thanks,
Joe

On Fri, May 18, 2012 at 11:35 PM, Alex Barry <@Alex_Barry> wrote:

You could grab the source and do a ./configure && make
The headers will be in /path/to/SDL/include, and libraries in
/path/to/SDL/build

-Alex

On Fri, May 18, 2012 at 4:05 AM, sword9 <joe.psc at gmail.com> wrote:

Hi,

I have some stupid question as following, please feel free to correct me
if any inappropriate.

  1. how to install sdl 1.2 for developing application using sdl, which
    parts is required?
    source code?
    Runtime Libraraies?
    Development Libraries?

  2. On a linux server, I don’t a root permission, can I install them in
    my local directory? I’ve tried rpm package, which seems to need root
    permission because I got the error as “error: can’t create transaction lock
    on /var/lib/rpm/__db.000”. Can I use source code to build a library? I’d
    appreciate if you could provide a procedure.

  3. How to distribute it? Must it be with runtime libraries?

Thanks,
Joe


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi Alex,

Thanks for your answer.

I solved it.
Under test directory, there is a Makefile.in file.
Running ./configure under it, which generates a Makefile. Then just make it.

Thanks,
JoeOn Mon, May 21, 2012 at 9:12 PM, Alex Barry <alex.barry at gmail.com> wrote:

gcc .c -L /home//path/to/SDL/build
-I/home//path/to/SDL/include -lSDL -lSDLmain -o sdl_example

That should do it, however, I can’t test it right now because I’m not on
linux.

Take care,
-Alex

On Mon, May 21, 2012 at 3:05 AM, sword9 <@sword9> wrote:

Alex,

Thanks for your answer. I’ve install SDL in my local diretory.
One more question, how to build the example code under “test directory”?

Thanks,
Joe

On Fri, May 18, 2012 at 11:35 PM, Alex Barry <alex.barry at gmail.com>wrote:

You could grab the source and do a ./configure && make
The headers will be in /path/to/SDL/include, and libraries in
/path/to/SDL/build

-Alex

On Fri, May 18, 2012 at 4:05 AM, sword9 <@sword9> wrote:

Hi,

I have some stupid question as following, please feel free to correct
me if any inappropriate.

  1. how to install sdl 1.2 for developing application using sdl, which
    parts is required?
    source code?
    Runtime Libraraies?
    Development Libraries?

  2. On a linux server, I don’t a root permission, can I install them in
    my local directory? I’ve tried rpm package, which seems to need root
    permission because I got the error as “error: can’t create transaction lock
    on /var/lib/rpm/__db.000”. Can I use source code to build a library? I’d
    appreciate if you could provide a procedure.

  3. How to distribute it? Must it be with runtime libraries?

Thanks,
Joe


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org