| View previous topic :: View next topic |
| Author |
Message |
chordmasta
|
Posted: Thu Jun 17, 2004 2:37 am Post subject: checking whether the C++ compiler (gcc ) works... no |
|
|
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
|
Posted: Thu Jun 17, 2004 2:44 am Post subject: |
|
|
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
|
Posted: Thu Jun 17, 2004 2:55 am Post subject: |
|
|
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
|
Posted: Thu Jun 17, 2004 6:35 pm Post subject: |
|
|
You need the c++ compiler:
| Code: | apt-get update
apt-get install gcc-c++ |
-Jeff
|
|
|
 |
kevin
|
Posted: Tue Jun 22, 2004 1:47 am Post subject: re: gcc install |
|
|
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
|
Posted: Tue Jun 22, 2004 2:21 am Post subject: |
|
|
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
|
Posted: Tue Jun 22, 2004 5:22 am Post subject: |
|
|
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
|
|
 |
Guest
|
Posted: Tue Jun 22, 2004 6:06 am Post subject: |
|
|
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
|
Posted: Tue Jun 22, 2004 4:38 pm Post subject: |
|
|
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
|
Posted: Tue Jun 22, 2004 5:01 pm Post subject: |
|
|
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:
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
|
|
 |
jebba
|
Posted: Tue Jun 22, 2004 5:07 pm Post subject: |
|
|
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
|
Posted: Tue Jun 22, 2004 5:12 pm Post subject: |
|
|
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)
|
|
|
 |
|