Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-16-2005, 08:10 AM   #1
LQ Newbie
Registered: Oct 2005
Location: greece
Posts: 20

Rep: Reputation: 0
library srgp

i have package srgp.tar.Z and srgp.tar.gz but i dont know how to install it on suse 9.3 or Solaris.Please help me!!
Old 10-17-2005, 11:28 AM   #2
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
I don't know sgrp. So all that follows are guesses.

Often you get source code as a tarball. Assuming that's the case, the typical steps are
tar xvzf sgrp.tar.gz
cd sgrp
make test
sudo make install
This is assuming a nice and trustworthy packager.

A nice package will unpack into a subdirectory sgrp. But it could also be sgrp-1.0. Or no subdirectory at all -- that's not frequent, but it happened to me, and when everything spills out into your current directory, it's a big mess. So when you're not sure, first check (tar tzf sgrp.tar.gz), or create a new directory and cd to that.

Many tarballs were made with autoconf, and they contain a script "configure", which you run after unpacking. It will determine your machine's software environment (e.g., does it have gcc?) and create an appropriate makefile. Of course if your enemy prepared sgrp.tar.gz, it could do something completely different
Maybe there is no configure. Maybe there's a makefile. In that case, you can try and skip to the next step, building the code. But maybe there is no makefile and no source, just a library file (e.g., libsgrp.a). You could link your code with that, and if it works, install it, e.g., in /usr/local/lib.

Make will should build the library, typically by compiling source files (and maybe archiving them) and test it. Maybe there is no target "test", in which case you'll get a message like "Don't know how to make test" or "make: *** No rule to make target `test'. Stop.". In that case, just try "make" with no arguments.

Finally, "make install" should put the finished library into a place where linkers look, like /usr/local/lib. As normal users typically cannot write there, you must run this step as root, which is accomplished by "sudo". Of course you want to be careful what you run as root. If you don't trust the makers of sgrp (and even if you do), it would be a good idea to look in the makefile and see what target install does.

Good luck, and let us know how far you get.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
compile error srgp library in C csst0136 Programming 13 10-25-2005 09:36 PM
install srgp library 2D graphics csst0136 Solaris / OpenSolaris 2 10-17-2005 10:17 AM
installing srgp library csst0136 SUSE / openSUSE 1 10-16-2005 07:16 AM
Compiling SRGP kopf Programming 2 06-14-2004 12:21 AM
srgp on suse 9.0 make error kopf Linux - Distributions 0 05-31-2004 04:27 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration