LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-19-2005, 01:44 AM   #16
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled

To me, it looks like the source code is broken, since it's complaining about syntax errors and things not being in scope. Maybe try an older version of whatever you're trying to install and see if that works.
 
Old 08-19-2005, 01:50 AM   #17
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Ok scrap that program. Lets try another .gz


robby@linux:~/Downloaded files> tar xfz eve-free-linux-1.0.5.tgz
robby@linux:~/Downloaded files> su
Password:
linux:/home/robby/Downloaded files # cd '/home/robby/Downloaded files/eve-free-linux-1.0.5'
linux:/home/robby/Downloaded files/eve-free-linux-1.0.5 # sh install.sh
install.sh: line 97: test: /home/robby/Downloaded: binary operator expected
I can't find eve-free-linux.tgz in /home/robby/Downloaded files/eve-free-linux-1.0.5. I'm confused.

And the file is there. I can see it when I open the folder.

Last edited by kwid21; 08-19-2005 at 01:54 AM.
 
Old 08-19-2005, 01:59 AM   #18
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The .tgz file is in your "Downloaded files" folder, not the one created when you extracted it (eve-free-linux-1.0.5). Not sure about that error though . Search LQ/Google perhaps (unless someone's around who can tell you what it means).
 
Old 08-19-2005, 02:10 AM   #19
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Original Poster
Rep: Reputation: 15
The thing is, I cannot figure out how to use/install ANY .tar.gz files
Lets take another one. I got the furthest with this one:
robby@linux:~/Downloaded files/tesseracttrainer-0.1.4> ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/bin/sh: /home/robby/Downloaded: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for find... /usr/bin/find
checking for sdl-config... no
checking for sdl11-config... no
checking for sdl-config... no
configure: Couldn't find sdl-config command. Build probably doomed.
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
configure: ****************************************************************
configure: * *
configure: * Choosing a platform pack. Please check that this is correct *
configure: * *
configure: ****************************************************************
configure: * Assuming generic X Windows platform.
configure: * Using platform pack from src/Platform/X11.
checking for X... no
checking for main in -lm... no
checking for main in -lXext... no
checking for main in -lGL... no
checking for main in -lgl... no
configure: error: Cannot find and link GL. Try --with-mesa
robby@linux:~/Downloaded files/tesseracttrainer-0.1.4>
 
Old 08-19-2005, 02:15 AM   #20
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
As it says at the bottom, try re-running configure as

$ ./configure --with-mesa

Remember that you don't have to type the $, that's just the prompt you see. Also, the line

checking for X... no

means you might wanna install the X development packages. Again, use YaST and look for xorg-x11-devel or something similar. It might have "xfree" in the name, instead of "xorg".
 
Old 08-19-2005, 02:23 AM   #21
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Everything was already installed except the fonts. I installed those and still the same error. Tried running ./configure --with-mesa and got the same error.

Also earlier in the log it states:
configure: Couldn't find sdl-config command. Build probably doomed.

Is that something I need to install?

Last edited by kwid21; 08-19-2005 at 02:25 AM.
 
Old 08-19-2005, 02:28 AM   #22
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Yeah, it would seem that you need to install SDL (it's a multimedia library). Have a look in YaST again, or if not, their site is here.
 
Old 08-19-2005, 02:33 AM   #23
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Original Poster
Rep: Reputation: 15
hmm yast says that they are all installed.....
 
Old 08-19-2005, 02:37 AM   #24
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
All I can think of is that sdl-config's path isn't in your $PATH environment variable. As root, do "updatedb && locate sdl-config" to check where it is.
 
Old 08-19-2005, 02:41 AM   #25
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Original Poster
Rep: Reputation: 15
says:
linux:~ # updatedb && locate sdl-config
bash: updatedb: command not found

When I type in this it says:
linux:~ # find sdl-config
find: sdl-config: No such file or directory

Last edited by kwid21; 08-19-2005 at 02:44 AM.
 
Old 08-19-2005, 02:44 AM   #26
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Meh. Just try a "locate sdl-config" then, using your normal user is fine for that.
 
Old 08-19-2005, 02:46 AM   #27
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Original Poster
Rep: Reputation: 15
I guess this version dosen't have the locate command. Keeps saying that the command isn't found.
 
Old 08-19-2005, 02:48 AM   #28
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Oh dear :/. I'm out of ideas .
 
Old 08-19-2005, 02:56 AM   #29
kwid21
Member
 
Registered: Aug 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Why is it nothing works in Linux like it is supposed to? Everything has to be treated special, and installing anything takes 10 times longer than it should. I can't even get a simple .gz file to install correctly using the instructions provided in the file. Someone needs to write a program that will extract the files, configure it for you, then install the program. If it has problems installing the file, it should tell you what is missing, or what is wrong and tell you how to correct it (ie: install <software> to continue)
 
Old 08-19-2005, 03:25 AM   #30
Gato Azul
Member
 
Registered: Sep 2003
Location: /dev/null
Distribution: CentOS, Ubuntu
Posts: 128

Rep: Reputation: 16
Quote:
Why is it nothing works in Linux like it is supposed to?
It actually does work like it's supposed to. Remember, this is Linux, not Windows, that we're talking about and following in the tradition of Unix-type systems, Linux has its own way of going about things, one of which is installing software


That said, the basics of installing from a tar.gz or tar.bz2 or tgz file are pretty simple once you understand what's going on, and maybe that's what's in order here:
1) uncompressing the file (if needed)
2) untarring the file
3) reading the README or INSTALL file (which generally just tells you to do the next 3 steps)
4) run the configuration script (if needed);
5) run make
6) run make install

Explanation:
A tar file is really just an archive of files all put together so that they're nice and easy to handle. A tar.gz is a tar file that's been zipped with gzip (as is a .tgz...just shorter extension), while a tar.bz2 file is a tar file that's been zipped using bzip2. You can easily untar and unzip a file in one fell swoop by running:
# tar -xzvf filename.tar.gz (for gzipped tar files)
- or -
# tar -xjvf filename.tar.bz2 (for bzipped tar files)
- or -
# tar -xvf filename.tar (for plain old tar files)

Most programs then call for you to run "./configure"
The "./" tells the shell to look in the current directory (denoted by a period, with a slash at the end signifying it's in that folder) for the executable called "configure"
This launches a shell script that can do all sorts of nifty things, but generally it checks your system for compiler flags, necessary libraries, dependencies, etc. It then creates a Makefile that tells the compiler how to make the program from source into a binary. Often times it'll include instructions for make install on how/where to install the program and create the necessary configuration files. Sometimes it even has an uninstallation script which will handle uninstallation for you.

If something fails in the ./configure stage, the script usually tells you. Read its output and see if perhaps you are missing a library/dependency or have an outdated version. Likewise if something fails in the make or make install stage, then make will tell you what went wrong and you can read the output and fix it accordingly.

I know it can all look quite daunting and confusing at first, but once you've compiled some programs from source on your own and poke around with it a bit, it's really not so hard! So cheer up and don't get discouraged yet! We're here to help you through, just be willing to have the patience and to learn a new way of doing things - the Linux way

As for the command issues, on a lot of distributions you have to be root to run updatedb, and sometimes to run locate. Try running those as root and see what happens.

Last edited by Gato Azul; 08-19-2005 at 03:29 AM.
 
  


Reply


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
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
how to install .tar.bz and src.rpms and tar.gz files gadekishore Linux - Software 1 10-12-2005 09:09 PM
backup files, tar, do i need to make a copy dtra Linux - Software 3 05-10-2005 09:52 PM
how do i make .tar.gz files? ShawnD Linux - General 5 07-24-2002 05:51 AM
Can I automate the tar, ./configure, make, and make install of about 50 packages? JoeLinux Linux - General 2 04-13-2002 04:35 AM


All times are GMT -5. The time now is 07:40 PM.

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