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! :newbie: |
"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 |
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. |
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?? :confused: 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. |
oh ... one last quick question ... do most folks just trash their rpm's after installation?
Thanks. |
"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. |
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 # |
Quote:
ncurses-5.4-61.3 ncurses-devel-5.4-61.3 Quote:
make-3.80-184 Same source as gcc: ftp.suse.com (see jailbait's post) |
Got'cha ... and thanks again!
|
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 :confused: Clueless! |
Quote:
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. |
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. |
All times are GMT -5. The time now is 08:25 PM. |