LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-04-2004, 04:52 PM   #1
oprogue
Member
 
Registered: May 2004
Location: Southeastern USA
Distribution: SuSe, MEPIS, Knoppix, DSL
Posts: 84

Rep: Reputation: 15
Question SuSe 9.1 C++ compiler


I'm having trouble in locating g++ and/or gcc with the 9.1 SuSe Personal edition. I am wanting to compile the wifi sniffer kismet. Any and all help (with compiling programs or sniffers) is greatly appreciated.

Thanks!

 
Old 12-04-2004, 05:16 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I'm having trouble in locating g++ and/or gcc with the 9.1 SuSe Personal edition."

SuSE Personal is a subset of SuSE Pro. One of the things missing from SuSE Personal are the compilers. You can download the compiler packages from ftp://ftp.suse.com/pub/suse/i386/9.1/suse/i586/

---------------------------
Steve Stites
 
Old 12-04-2004, 05:38 PM   #3
oprogue
Member
 
Registered: May 2004
Location: Southeastern USA
Distribution: SuSe, MEPIS, Knoppix, DSL
Posts: 84

Original Poster
Rep: Reputation: 15
Many thanks for the link ... wading thru all the files now. I tried to install the gcc rpm, but received serveral error messages about missing modules, - trying to track them down now.

Any suggestions or tips, anyone can pass along will be greatly appreciated!

oprogue.
 
Old 12-04-2004, 07:32 PM   #4
oprogue
Member
 
Registered: May 2004
Location: Southeastern USA
Distribution: SuSe, MEPIS, Knoppix, DSL
Posts: 84

Original Poster
Rep: Reputation: 15
It would seem someone would have compiled a listing of all tehe packages necessary to be able to compile c++ programs.

Just inorder to install the commonC++-devel 2.1.0.13-12... I've had to install the following packages:

zlib1.2.1-70.i586.rpm
zlib-devel.i586.rpm

readline4.3-306.i586.rpm
readline-devel.i586.rpm

libxml2-2.6.7-28.i586.rpm
libxml2-devel.i586.rpm

binutils.i586.rpm
glibc-devel-2.3.3.i586.rpm

libstdc++-devel.i586.rpm

glibc-dev.rpm
gcc-2.2.2-41.i586.rpm
gcc-c++ 3.3.3-41.rpm

CommonC++-2.1.0.13-125.i586.rpm
CommonC++-devel2.1.0.13-125.i586.rpm


All this is alot of work picking through the error messages - and there is a hiearchy to them as well (of which I think I have in the correct order above after alot of trial and error ... and all so I can compile a net sniffer ... While I don't mind the scavanger hunt - I'm on a broadband connection, and most of these were mickymouse files in size, never the less I can only imagine those trying to set it up over dialup.

Why can't programs like the netsniffer already come compiled??
and is there a list of programs with their dependences some where??



Regardless ... I'm a happy SuSe user for the moment! (anything to crush the MS strangle hold on the market).

... and just as a note ... YaST rocks!

oprogue.
 
Old 12-04-2004, 07:33 PM   #5
oprogue
Member
 
Registered: May 2004
Location: Southeastern USA
Distribution: SuSe, MEPIS, Knoppix, DSL
Posts: 84

Original Poster
Rep: Reputation: 15
oh ... one last quick question ... do most folks just trash their rpm's after installation?

Thanks.
 
Old 12-04-2004, 08:10 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"do most folks just trash their rpm's after installation?"

Anything that I download I save to CD-RW so that I will never have to download it again.

"All this is alot of work picking through the error messages "

Yes, dependencies can be a pain in the butt.

"Why can't programs like the netsniffer already come compiled??"

You have to compile programs for each version of every distribution. SuSE does this for you by creating binaries for every program that they distribute. The problem that developers face is that if the various distributions do not distribute their program then the developer has to create a whole lot of rpms and Debian packages for a lot of distributions. Developers don't bother with this. They simply provide the source and each person can compile it themselves to fit their distribution.

"is there a list of programs with their dependences some where??"

There is no master list. Many developers list the needed dependencies for their particular programs on their web site. Almost all source packages or tarballs have a ./configure script. The ./configure script checks for dependencies and issues error messages similar to the dependency error messages that you get in a binary rpm.

"It would seem someone would have compiled a listing of all tehe packages necessary to be able to compile c++ programs."

This is one of the services provided by a distribution. You tell YaST that you want to install the C compiler and YaST takes care of resolving and finding all of the dependencies, assuming that the program that you want to install is on the install CD.

-----------------------
Steve Stites.
 
Old 12-04-2004, 08:39 PM   #7
oprogue
Member
 
Registered: May 2004
Location: Southeastern USA
Distribution: SuSe, MEPIS, Knoppix, DSL
Posts: 84

Original Poster
Rep: Reputation: 15
Steve thanks!! You've been most helpful.

I have managed to download a "sniffit" and to run "./configure", below is the output - it indicates it made a "makefile", but when I attempt the command "make" or "./make" I get the error no such file ... ??

First attempt at compiling something using Linux - last time I had to compile a program was in the mid 80's on a Vax750!

Anyone ... any advise??


Thanks,

Ralph.


(none):/home/Neo/programs/sniffit/sniffit.0.3.5 # ls
. install-sh sn_curses.h sn_interface.h
.. libpcap-0.3 sn_data.h sn_logfile.c
config.cache Makefile sn_defines.h sn_logfile.h
config.guess Makefile.in sn_generation.c sn_packets.c
config.log pcap.h sn_generation.h sn_packets.h
config.status PLUGIN-HOWTO sn_global.h sn_packetstructs.h
config.sub README.FIRST sniffit.0.3.5.c sn_plugins.h
configure sample_config_file sniffit.5 sn_structs.h
configure.in sn_cfgfile.c sniffit.8
dns_plugin.plug sn_cfgfile.h sniffit.h
dummy_plugin.plug sn_config.h sn_interface.c
(none):/home/Neo/programs/sniffit/sniffit.0.3.5 # configure
bash: configure: command not found
(none):/home/Neo/programs/sniffit/sniffit.0.3.5 # type makefile
bash: type: makefile: not found
(none):/home/Neo/programs/sniffit/sniffit.0.3.5 # ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for main in -lncurses... (cached) no
checking for ncurses.h... no
checking for shmget... (cached) yes
checking for atexit... (cached) yes
checking size of unsigned short int... (cached) 2
checking size of unsigned long int... (cached) 4
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
creating ./config.status
creating Makefile
configuring in libpcap-0.3
running /bin/sh ./configure --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking gcc version... (cached)
./configure: line 868: test: -gt: unary operator expected
checking how to run the C preprocessor... (cached) gcc -E
checking for malloc.h... (cached) yes
checking for sys/ioccom.h... (cached) no
checking for sys/sockio.h... (cached) no
checking if fixincludes is needed... (cached) yes
checking for ether_hostton... (cached) yes
checking for strerror... (cached) yes
checking packet capture type... linux
checking for flex... no
checking for bison... no
checking for ranlib... (cached) ranlib
checking if sockaddr struct has sa_len member... (cached) no
checking if unaligned accesses fail... (cached) no
rm: cannot remove `net': Is a directory
ln: `net/net': File exists
checking for a BSD compatible install... (cached) /usr/bin/install -c
creating ./config.status
creating Makefile
(none):/home/Neo/programs/sniffit/sniffit.0.3.5 # make
bash: make: command not found
(none):/home/Neo/programs/sniffit/sniffit.0.3.5 # ./make
bash: ./make: No such file or directory
(none):/home/Neo/programs/sniffit/sniffit.0.3.5 #
 
Old 12-05-2004, 07:50 AM   #8
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
checking for main in -lncurses... (cached) no
checking for ncurses.h... no
I'd say that it's the ncurses libraries that are missing.

ncurses-5.4-61.3
ncurses-devel-5.4-61.3

Quote:
(none):/home/Neo/programs/sniffit/sniffit.0.3.5 # make
bash: make: command not found
... and make

make-3.80-184

Same source as gcc: ftp.suse.com (see jailbait's post)
 
Old 12-07-2004, 08:09 PM   #9
oprogue
Member
 
Registered: May 2004
Location: Southeastern USA
Distribution: SuSe, MEPIS, Knoppix, DSL
Posts: 84

Original Poster
Rep: Reputation: 15
Got'cha ... and thanks again!
 
Old 12-18-2004, 08:17 AM   #10
Lewiji
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
Cheers for that comprehensive list, much help to a Linux newbie such as myself...

However I'm having trouble. I'm trying to install SuperKaramba which requires me to compile it, so I installed all the stuff above in order and it seemed to work ok. Restarted X and used the terminal as root to go into the superkaramba dir.

Running ./configure gives this at the very end:

checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!

I have done a google for "Can't find X includes" but I can't find anything other than unhelpful stuff and vague answers

This is the second time I've tried this, the first time I cocked up the dependencies (it finally installed but with far too much stuff installed) and got the same problem. I formatted and installed SuSE 9.1 again but same problem...

Edit: Got the make package now, and tried using make and make install on it:

mshome:~/superkaramba-0.35 # make
make all-recursive
make[1]: Entering directory `/root/superkaramba-0.35'
Making all in doc
make[2]: Entering directory `/root/superkaramba-0.35/doc'
Making all in .
make[3]: Entering directory `/root/superkaramba-0.35/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/superkaramba-0.35/doc'
Making all in en
make[3]: Entering directory `/root/superkaramba-0.35/doc/en'
make[3]: *** No rule to make target `/usr/share/apps/ksgmltools2/customization/kde-chunk.xsl', needed by `index.cache.bz2'. Stop.
make[3]: Leaving directory `/root/superkaramba-0.35/doc/en'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/superkaramba-0.35/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/superkaramba-0.35'
make: *** [all] Error 2

Clueless!

Last edited by Lewiji; 12-18-2004 at 08:23 AM.
 
Old 12-18-2004, 12:25 PM   #11
oprogue
Member
 
Registered: May 2004
Location: Southeastern USA
Distribution: SuSe, MEPIS, Knoppix, DSL
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Lewiji
. . . checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths! . . .

I have done a google for "Can't find X includes" but I can't find anything other than unhelpful stuff and vague answers . . .

`/usr/share/apps/ksgmltools2/customization/kde-chunk.xsl', needed by `index.cache.bz2'. Stop. . . .
Clueless!
Not sure if this will help you or not, but I've run into similar compilation problems - there may be a library missing.

Another forum had the same error and "... solved it by installing the newest libxslt & libxml2" : http://www.broadbandreports.com/foru...6550~mode=flat

I haven't had any further compilation problems though since I updated Personal to Pro by following abisko00's thread on the topic:
http://www.linuxquestions.org/questi...hreadid=266647

The one thing you need to know is I selected for an install of the KDE and GNOME development packages along with all the C components ... doing this seemed to solve my compilation problems!! Try a google on "kde-chunk.xsl" tthere are alot of results on "kde chunk". Good luck, please post your solution.
 
Old 12-19-2004, 12:35 PM   #12
Lewiji
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
Thanks, I installed those packages but only after I'd found an RPM for superkaramba Other packages seem to compile fine! I guess it's just karamba's config script can't detect whats missing so gives a generic error.

Cheers.
 
  


Reply



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
SuSE Compiler Problem toadatrix Linux - Software 5 02-04-2005 08:03 PM
Problem trying to get a C++ compiler on Suse 9.1 cyclebain SUSE / openSUSE 6 01-24-2005 01:13 AM
compiler for SuSE 9.1 personal deftones Linux - General 16 09-21-2004 01:30 AM
Fortran Compiler in SuSE? Krater47 Linux - Software 4 09-09-2004 12:10 AM
SuSE: Compiler question revenge80200 Linux - Newbie 3 08-13-2004 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:09 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
Open Source Consulting | Domain Registration