Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

svgalib problem 3

Status
Not open for further replies.

XofCDe3rd

Technical User
Nov 9, 2003
120
I am a newbie to Linux and can get around and do certain tasks but I am serverly limited by knowledge.

I wanted to set up quake 2 server(don't ask me y, just for the hell of it I guess). Now to run the server without X, I needed svgalib to be configured properly.....now my attempts to look to its configuration file which is is supposed to be in /etc/vga i think, proved rather fruitless....

So I picked up a latest tar file on the svgalib site...and my woes begin.....I unpacked the tar file but I had to compile it....that was pretty straight foward, I knew i had to compile via a SU but it gave me more errors....I also read somewhere, big chance I am wrong but most of redhat distros from 8.0 onwards would hav svgalib already inbuilt....(I dunno)

is there any one with a bit more savvy that can help me out on this one
 
If you are more interested in getting this package installed rather than compiling it your self, I'd opt for the rpm package instead of the tarball.
 
Thanks for the reply....... RhythmAce

I would like to compile it(well I tried to) but the errors given were as clear as mud to me......

I got past the first couple okay, but m quite lost

the rpms had dependancies on the libvga.so.1 so I guess might have to compile after all.

any way you can guide me on compilin the library???
 
Download the rpm if possible. Otherwise, download the gzipped tarball.
as root...
tar -xvf filename.tar.gz
cd ./filename.ver
./configure
make
make install

As long as you're not issing anything (like gcc), that should be it.

Mark
 
Have you tried to use yum or apt-get? They will update any or all packages installed on your computer. It will even resolve all dependencies and download any other packages required. I haven't used apt-get but to install a new package using yum, you would issue this command:

Code:
yum install packagename

packagename is the name of the package minus the version number. If you already have the package installed and just want to update it then you would use the same command but change install to update. Just typing "yum update" will cause it to look for all available updates for your system.

 
I went to svgalib.org and found that an rpm version is not available. You have two options. You can download the precompiled binaries and copy the into /usr/lib and usr/local/lib or compile it as you have been trying to which would be the best choice since it would be sure to work with you system. The only draw back to this is you will have to work through the errors until you hit pay dirt.
 
Thank you all for the response

okay here's the holdup......once i 'make install' it goes through a lot of stuff(compiling n installin I guess)....it then comes to a part that looks like this

make: Idconfig: Command not found
make: ***[installsharedlib] Error 127

I saw installsharedlib in the Makefile.config file and left it uncommented understanding that it would automatically install the compiled shared library files.
from wot I saw was going on...it created a folder /usr/local/lib....a quick view of this dir revealed the following files

libvgagl.so
libvgagl.so.1.4.3
libvga.so
libvga.so.1.4.3

now I don't know how a sucessfull compilation is supposed to terminate...but I know that this one was not sucessfull...cause after a sucessfull install I should be able to find a libvga.config file in /etc/vga to set the monitor and mouse type.

 
You should have ldconfig. Try "whereis ldconfig" or "which ldconfig". It's usually in /sbin. What it does is make a map or links to all you shared object libraries (.so files) so they can be found at run time. It's very simple to use:

ldconfig -v

The -v is for verbose so you can see what's going on.

If you could cut and paste the errors here that would be a big help also. If you are working in text mode, you can just rediredt the output from the screen to a file. For example:

make install > errors-out

This will create a file with all the screen out put in it.

 
oops! cannot find Idconfig am I stuffed....or could I use the ln command to manually create the links(read that somewhere)....

Okay got the redirected output.....here it is:

=======================================================
Removing textmode utilities...
Removing shared library stubs (old & current)...
Removing shared library images (old & current)...
Removing static libraries...
Removing header files...
(cd doc; make -f /home/q2admin/svgalib-1.4.3/doc/Makefile srcdir="/home/q2admin/svgalib-1.4.3" uninstall)
make[1]: Entering directory `/home/q2admin/svgalib-1.4.3/doc'
Removing all svgalib man pages.
/bin/sh: line 1: cd: /usr/local/man: No such file or directory
/bin/sh: line 1: cd: /usr/man: No such file or directory
/bin/sh: line 1: cd: /usr/local/man: No such file or directory
make[1]: Leaving directory `/home/q2admin/svgalib-1.4.3/doc'
Installing header files in /usr/local/include.
mkdir -p /usr/local/include
(cd sharedlib/; \
make -f /home/q2admin/svgalib-1.4.3/src/Makefile libvga.so.1.4.3 \
srcdir="/home/q2admin/svgalib-1.4.3" DLLFLAGS="-fPIC" \
)
make[1]: Entering directory `/home/q2admin/svgalib-1.4.3/sharedlib'
make[1]: `libvga.so.1.4.3' is up to date.
make[1]: Leaving directory `/home/q2admin/svgalib-1.4.3/sharedlib'
(cd sharedlib/; \
make -f /home/q2admin/svgalib-1.4.3/gl/Makefile libvgagl.so.1.4.3 \
srcdir="/home/q2admin/svgalib-1.4.3" DLLFLAGS="-fPIC" \
)
make[1]: Entering directory `/home/q2admin/svgalib-1.4.3/sharedlib'
make[1]: `libvgagl.so.1.4.3' is up to date.
make[1]: Leaving directory `/home/q2admin/svgalib-1.4.3/sharedlib'
Removing shared library images (old & current)...
mkdir -p /usr/local/lib
Installing shared library image as /usr/local/lib/libvga.so.1.4.3 /usr/local/lib/libvgagl.so.1.4.3.
make: ldconfig: Command not found
make: *** [installsharedlib] Error 127

=======================================================

hope this helps......


(I just wanna get a bit more proficient with linux so I can TRY! jump frm M$ servers to linux.....I know there be a steep learnin curve but hey m willin to learn)
 
ldconfig is part of the linker -- this will stop a lot of software from being built. In most Linux distros, it's part of the gcc or g++ package. You may want to try

locate ldconfig

to see if it is installed but not in your path -- if this is the case, then making a link to it with ln would work...

[plug=shameless]
[/plug]
 
Okay ta all...I think you have all put me on the right path...

I will try and give this thing another go.....Watch this thread....I will be back............

 
Hey Hey It worked...........U techies r the best...heh heh

figures I did understand the documentation on the svgalib.org...it turns out coz I woz using red hat 8, the distro uses libc6 and quake2 needed to the libc5 binaries, which I had already picked up..

Compiling svgalib would compile it using libc6....well couple of rpms, tars, lns and a lot of mistakes later and the quake2 server is ALIVE..

after all that I feel as if I am now starting to get hooked on linux...Its scary for a person who usually uses M$ OSs but sweet once you get to know it no matter how little u know bout it

I can't thank you all enough.....

darn satisfied.............(phew!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top