View Full Version : GCC no longer included in Root servers?
eWebtricity
07-04-2005, 12:03 AM
Is it me or is gcc no longer included in the new Root servers? I wanted to install ImageMagick but I ran into this for the first time.
[root@server libpng-1.0.6]# make
gcc -I../zlib -Wall -O3 -funroll-loops -c -o png.o png.c
make: gcc: Command not found
make: *** [png.o] Error 127
Like nobody is going to install anything on a root server.
Come on.
sholzy
07-04-2005, 12:40 AM
This is from my 6 month old Root I.
root]# yum install gcc
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
...Dependencies resolved
I will do the following:
[install: gcc 3.3.3-7.i386]
I will install/upgrade these to satisfy the dependencies:
[deps: binutils 2.15.90.0.3-5.i386]
[deps: glibc-kernheaders 2.4-8.44.i386]
[deps: glibc-devel 2.3.3-27.1.i386]
[deps: cpp 3.3.3-7.i386]
[deps: glibc-headers 2.3.3-27.1.i386]
Is this ok [y/N]: n
Exiting on user command.
eWebtricity
07-04-2005, 01:03 AM
I did the same from the 1and1 update repository. Still getting errors on my install for some reason though. Not sure why yet.
eWebtricity
07-04-2005, 01:42 PM
I'm still getting this error trying to install ImageMagick and supporting libraries for photopost, i haven't figured out why yet. Any ideas?
[root@torpedo libpng-1.0.6]# make
gcc -I../zlib -Wall -O3 -funroll-loops -c -o png.o png.c
In file included from png.c:14:
png.h:211:18: zlib.h: No such file or directory
In file included from png.h:214,
from png.c:14:
pngconf.h:850: error: syntax error before '*' token
pngconf.h:850: warning: type defaults to `int' in declaration of `png_zcharp'
pngconf.h:850: warning: data definition has no type or storage class
pngconf.h:851: error: syntax error before '*' token
pngconf.h:851: warning: type defaults to `int' in declaration of `png_zcharpp'
pngconf.h:851: warning: data definition has no type or storage class
pngconf.h:852: error: syntax error before '*' token
pngconf.h:852: warning: type defaults to `int' in declaration of `png_zstreamp'
pngconf.h:852: warning: data definition has no type or storage class
In file included from png.c:14:
png.h:877: error: syntax error before "z_stream"
png.h:877: warning: no semicolon at end of struct or union
png.h:945: error: `gamma' redeclared as different kind of symbol
/usr/include/bits/mathcalls.h:265: error: previous declaration of `gamma'
png.h:1056: error: syntax error before '}' token
png.h:1984: error: syntax error before "voidp"
png.h:1988: error: syntax error before "voidp"
png.h:2282: error: syntax error before "png_zalloc"
png.h:2282: error: syntax error before "png_ptr"
png.h:2282: warning: type defaults to `int' in declaration of `png_zalloc'
png.h:2282: warning: data definition has no type or storage class
png.h:2285: error: syntax error before "png_ptr"
png.c: In function `png_set_sig_bytes':
png.c:98: error: dereferencing pointer to incomplete type
png.c: At top level:
png.c:139: error: syntax error before "png_zalloc"
png.c:139: error: syntax error before "png_ptr"
png.c:140: warning: return type defaults to `int'
png.c: In function `png_zalloc':
png.c:141: error: `items' undeclared (first use in this function)
png.c:141: error: (Each undeclared identifier is reported only once
png.c:141: error: for each function it appears in.)
png.c:141: error: `size' undeclared (first use in this function)
png.c:142: error: `png_ptr' undeclared (first use in this function)
png.c:154: error: `voidpf' undeclared (first use in this function)
png.c:154: error: syntax error before "ptr"
png.c: At top level:
png.c:159: error: syntax error before "png_ptr"
png.c: In function `png_zfree':
png.c:161: error: `png_ptr' undeclared (first use in this function)
png.c:161: error: `ptr' undeclared (first use in this function)
png.c: In function `png_reset_crc':
png.c:170: error: dereferencing pointer to incomplete type
png.c:170: warning: implicit declaration of function `crc32'
png.c:170: error: `Z_NULL' undeclared (first use in this function)
png.c: In function `png_calculate_crc':
png.c:183: error: dereferencing pointer to incomplete type
png.c:185: error: dereferencing pointer to incomplete type
png.c:191: error: dereferencing pointer to incomplete type
png.c:196: error: dereferencing pointer to incomplete type
png.c:196: error: dereferencing pointer to incomplete type
png.c:196: error: `uInt' undeclared (first use in this function)
png.c:196: error: syntax error before "length"
png.c: In function `png_info_destroy':
png.c:464: error: dereferencing pointer to incomplete type
png.c:466: error: dereferencing pointer to incomplete type
png.c:467: error: dereferencing pointer to incomplete type
png.c: In function `png_get_io_ptr':
png.c:481: error: dereferencing pointer to incomplete type
png.c: In function `png_init_io':
png.c:493: error: dereferencing pointer to incomplete type
png.c: In function `png_convert_to_rfc1123':
png.c:508: error: dereferencing pointer to incomplete type
png.c:510: error: dereferencing pointer to incomplete type
png.c:525: error: dereferencing pointer to incomplete type
png.c:530: error: dereferencing pointer to incomplete type
png.c: In function `png_handle_as_unknown':
png.c:595: error: dereferencing pointer to incomplete type
png.c:597: error: dereferencing pointer to incomplete type
png.c:597: error: dereferencing pointer to incomplete type
png.c:598: error: dereferencing pointer to incomplete type
make: *** [png.o] Error 1
[root@torpedo libpng-1.0.6]#
sholzy
07-04-2005, 04:27 PM
ImageMagick is in the repository and Yum should be able to install it. Here is the contents from my etc/yum.conf:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://update.onlinehome-server.com/fedora/linux/core/$releasever/$basearch/os/
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://update.onlinehome-server.com/fedora/linux/core/updates/$releasever/$basearch/
#[updates-testing]
#name=Fedora Core $releasever - $basearch - Unreleased Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/$releasever/$basearch/
#[development]
#name=Fedora Core $releasever - Development Tree
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/development/$basearch/
eWebtricity
07-04-2005, 04:38 PM
I thought about that but wasn't sure I'd get the correct install as Photopost has their own specific instructions for install ImageMagick along with some other libraries show here:
http://www.photopost.com/howtoinstall-php.html
sholzy
07-04-2005, 05:31 PM
I would give Yum a try to install what I can that way, then try to install Photopost.
eWebtricity
07-05-2005, 11:54 PM
I threw caution to the wind and installed ImageMagick via yum and it's working like a champ.
[root@server gallery]# yum install ImageMagick
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
.Dependencies resolved
I will do the following:
[install: ImageMagick 6.2.0.7-2.fc2.i386]
I will install/upgrade these to satisfy the dependencies:
[deps: libungif 4.1.0-17.1.i386]
[deps: libtool-libs 1.5.6-1.i386]
Is this ok [y/N]: y
Downloading Packages
Getting ImageMagick-6.2.0.7-2.fc2.i386.rpm
ImageMagick-6.2.0.7-2.fc2 100% |=========================| 2.5 MB 00:00
Getting libungif-4.1.0-17.1.i386.rpm
libungif-4.1.0-17.1.i386. 100% |=========================| 29 kB 00:00
Getting libtool-libs-1.5.6-1.i386.rpm
libtool-libs-1.5.6-1.i386 100% |=========================| 23 kB 00:00
Running test transaction:
Test transaction complete, Success!
libtool-libs 100 % done 1/3
libungif 100 % done 2/3
ImageMagick 100 % done 3/3
Installed: ImageMagick 6.2.0.7-2.fc2.i386
Dep Installed: libungif 4.1.0-17.1.i386 libtool-libs 1.5.6-1.i386
Transaction(s) Complete
[root@server gallery]#
sholzy
07-06-2005, 02:41 AM
Glad it worked out for you! Yum has my life much easier with my server. I use SuSE on all my boxes at home and I wish Yum was available for SuSE.
vBulletin® v3.7.0 Beta 4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.