FAQ   Search   Memberlist  
Profile    Log in to check your private messages    Register    Log in
checking whether the C++ compiler (gcc ) works... no

 
Post new topic   Reply to topic    BLAG Forum Index -> support
View previous topic :: View next topic  
Author Message
chordmasta
PostPosted: Thu Jun 17, 2004 2:37 am    Post subject: checking whether the C++ compiler (gcc ) works... no Reply with quote

hey, I downloaded BLAG and LOVE IT!
I did a synaptic and updated from all the repositories. I then tried to compile a program. It didnt work. I then did apt-get update and apt-get install glibc-devel successfully. Then i rtried again. Didnt work. Any ideas? PLEASE PLEASE! IM LOVING BLAG SO FAR!!!

iloading 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 a BSD compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... 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... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.


_________________
OLD COMPUTER ALERT!

Intel Celeron 368 mhz
128 Mb Cache
256 Mb RAM
8 Gb Fujitsu HD
1 Gb Fireball Swap Drive
Rage 128 Ultra Pro Video Card
stevo32
PostPosted: Thu Jun 17, 2004 2:44 am    Post subject: Reply with quote

yeah i got the same error message when i was compiling something else...i forgot what i was trying to compile when that happened. i'll post it here when i remember though.
chordmasta
PostPosted: Thu Jun 17, 2004 2:55 am    Post subject: Reply with quote

Okay, I fixed it. just run

Code:
apt-get install gcc-c++


It should work


_________________
OLD COMPUTER ALERT!

Intel Celeron 368 mhz
128 Mb Cache
256 Mb RAM
8 Gb Fujitsu HD
1 Gb Fireball Swap Drive
Rage 128 Ultra Pro Video Card
jebba
PostPosted: Thu Jun 17, 2004 6:35 pm    Post subject: Reply with quote

You need the c++ compiler:

Code:
apt-get update
apt-get install gcc-c++


-Jeff

kevin
PostPosted: Tue Jun 22, 2004 1:47 am    Post subject: re: gcc install Reply with quote

i ran:
apt-get update
apt-get install gcc-c++

i get:
E: Couldn't find package gcc-c

it seems the lose the "++" somewhere in the process.
i also tried it will quotes around the pakage, ie "gcc-c++"
i get the same result.
then i did:

apt-cache search gcc-c++ and apt-cache search gcc-c
both return nothing.

kevin
eleusa ( a t) gmx.net

Jason
PostPosted: Tue Jun 22, 2004 2:21 am    Post subject: Reply with quote

It worked fine for me. You using 10000? Here is a copy of what went on in my terminal.

Code:

[jason@localhost jason]$ su
Password:
[root@localhost jason]# apt-get update
Get:1 http://www.blagblagblag.org 10000/i386 release [1105B]
Fetched 1105B in 0s (3012B/s)
Hit http://www.blagblagblag.org 10000/i386/os pkglist
Hit http://www.blagblagblag.org 10000/i386/os release
Hit http://www.blagblagblag.org 10000/i386/updates pkglist
Hit http://www.blagblagblag.org 10000/i386/updates release
Hit http://www.blagblagblag.org 10000/i386/errata pkglist
Hit http://www.blagblagblag.org 10000/i386/errata release
Hit http://www.blagblagblag.org 10000/i386/extras pkglist
Hit http://www.blagblagblag.org 10000/i386/extras release
Reading Package Lists... Done
Building Dependency Tree... Done
[root@localhost jason]# apt-get install gcc-c++
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libstdc++-devel
The following NEW packages will be installed:
  gcc-c++ libstdc++-devel
0 upgraded, 2 newly installed, 0 removed and 0 not upgraded.
Need to get 3346kB of archives.
After unpacking 11.4MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://www.blagblagblag.org 10000/i386/extras libstdc++-devel 3.3.2-1 [1330kB]
Get:2 http://www.blagblagblag.org 10000/i386/extras gcc-c++ 3.3.2-1 [2016kB]
Fetched 3346kB in 1m58s (28.3kB/s)
Committing changes...
Preparing...                ########################################### [100%]
   1:libstdc++-devel        ########################################### [ 50%]
   2:gcc-c++                ########################################### [100%]
Done.
[root@localhost jason]#

stevo32
PostPosted: Tue Jun 22, 2004 5:22 am    Post subject: Reply with quote

if i want to install gcc, and my computer with a blag install doesn't have a net connection, where should i get things i'm looking for? so far this area is all i can come up with because i found GCC there. is that where i should get blag packages from?


Last edited by stevo32 on Tue Jun 22, 2004 4:39 pm; edited 1 time in total
Guest
PostPosted: Tue Jun 22, 2004 5:51 am    Post subject: Reply with quote

you can also get them from the GCC website

http://gcc.gnu.org/releases.html

Guest
PostPosted: Tue Jun 22, 2004 6:06 am    Post subject: Reply with quote

is there a place were i can read upon apt-get and all the parameters of it... like is there a way to read the list of updates and packages
stevo32
PostPosted: Tue Jun 22, 2004 4:38 pm    Post subject: Reply with quote

Anonymous wrote:
you can also get them from the GCC website

http://gcc.gnu.org/releases.html

i'm aware of that...its just i think it might be better to trust the ones on the blagblagblag site because they have most likely been tested.

jebba
PostPosted: Tue Jun 22, 2004 5:01 pm    Post subject: Reply with quote

Unless you really really know what's up, I don't recommend getting GCC from the gnu site--It will be much more complicated.

You can read about apt-get by running:
Code:
man apt-get


In fact, you can run "man" in front of nearly every command to get more info.

If your BLAG box isn't connected to the net, egad! Connect it! ;) You won't be able to download using apt-get....

stevo32
PostPosted: Tue Jun 22, 2004 5:05 pm    Post subject: Reply with quote

well you see if i ever get that annoying wireless card working i'd get it connected to the net. so the link that i put in my previous post:

ftp://ftp.blagblagblag.org/pub/BLAG/linux/10000/en/os/i386/RedHat/RPMS.extras/gcc-3.3.2-1.i386.rpm

would that be the right place for me to download it then rpm it?

jebba
PostPosted: Tue Jun 22, 2004 5:07 pm    Post subject: Reply with quote

If you can get that rpm copied to you box, you can then just copy it /anywhere/ and while in the same directory as the file, run as root:

rpm -Uvh gcc-3.3.2-1.i386.rpm

You'll want to do the same with gcc-c++ and glibc-devel and whatever others you may need, depending on the application you are compiling.

-Jeff

stevo32
PostPosted: Tue Jun 22, 2004 5:12 pm    Post subject: Reply with quote

ok, thanks, i can take files to that box (i have a CD burner on my net connected box, its a plextor plexwriter premium :) ) thanks a ton i'll get my RPM's from there now (chasing around FC1 on rpmfind.net isn't exactly fun)
Display posts from previous:   
Post new topic   Reply to topic    BLAG Forum Index -> support
Page 1 of 1

Protected by Anti-Spam ACP