SWB-Consulting
asked on
to install imagemagick and ghostscript on linux server for doc to pdf conversion using openoffice
To get the task done, I used the listed steps (along with urls)
Steps followed
http://www.wallpaperama.com/forums/how-to-check-and-verify-imagemagick-installed-t6700.html
- rpm -q ImageMagick
http://www.wallpaperama.com/forums/how-to-install-imagemagick-installing-imagemagick-package-t6701.html
- yum install ImageMagick
imagemagick installed, now trying ghostscript
http://unixnewbie.org/blog/?p=30
cd /usr/local/src/
wget http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs863/ghostscript-8.63.tar.gz
tar zxf ghostscript-8.63.tar.gz
cd ghostscript-8.63
./configure
make
make install
-- problem --
[root@server ghostscript-8.63]# ./configure
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
http://www.linuxquestions.org/questions/linux-distributions-5/no-acceptable-c-compiler-found-in-path-...i-cant-make.-237970/
echo $PATH
output : /usr/kerberos/sbin:/usr/ke rberos/bin ://sbin:// bin:/usr/l ocal/sbin: /usr/local /bin:/sbin :/bin:/usr /sbin:/usr /bin:/root /bin
updatedb
-- problem --
[root@server ghostscript-8.63]# updatedb
-bash: updatedb: command not found
find / -name gcc
output : /usr/libexec/gcc
http://ubuntuforums.org/archive/index.php/t-29118.html
update path ???
http://www.linuxheadquarters.com/howto/basic/path.shtml
this is for current login - need more permanent solution
http://www.codecoffee.com/tipsforlinux/articles/11.html
(view) cat .bash_profile
(edit) vi .bash_profile
(view changes) cat bash_profile
run the script
. /root/.bash_profile
check path
echo $PATH
Output : /usr/kerberos/sbin:/usr/ke rberos/bin ://sbin:// bin:/usr/l ocal/sbin: /usr/local /bin:/sbin :/bin:/usr /sbin:/usr /bin:/root /bin:/root /bin:/usr/ libexec/gc c
now trying ghostscript install
[root@server ghostscript-8.63]# ./configure
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
-- problem --
path updated but still does not find compiler - why ???
I searched about this but could not figure out what am i missing. I am a newbie on linux, please provide detailed answer if possible.
Steps followed
http://www.wallpaperama.com/forums/how-to-check-and-verify-imagemagick-installed-t6700.html
- rpm -q ImageMagick
http://www.wallpaperama.com/forums/how-to-install-imagemagick-installing-imagemagick-package-t6701.html
- yum install ImageMagick
imagemagick installed, now trying ghostscript
http://unixnewbie.org/blog/?p=30
cd /usr/local/src/
wget http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs863/ghostscript-8.63.tar.gz
tar zxf ghostscript-8.63.tar.gz
cd ghostscript-8.63
./configure
make
make install
-- problem --
[root@server ghostscript-8.63]# ./configure
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
http://www.linuxquestions.org/questions/linux-distributions-5/no-acceptable-c-compiler-found-in-path-...i-cant-make.-237970/
echo $PATH
output : /usr/kerberos/sbin:/usr/ke
updatedb
-- problem --
[root@server ghostscript-8.63]# updatedb
-bash: updatedb: command not found
find / -name gcc
output : /usr/libexec/gcc
http://ubuntuforums.org/archive/index.php/t-29118.html
update path ???
http://www.linuxheadquarters.com/howto/basic/path.shtml
this is for current login - need more permanent solution
http://www.codecoffee.com/tipsforlinux/articles/11.html
(view) cat .bash_profile
(edit) vi .bash_profile
(view changes) cat bash_profile
run the script
. /root/.bash_profile
check path
echo $PATH
Output : /usr/kerberos/sbin:/usr/ke
now trying ghostscript install
[root@server ghostscript-8.63]# ./configure
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
-- problem --
path updated but still does not find compiler - why ???
I searched about this but could not figure out what am i missing. I am a newbie on linux, please provide detailed answer if possible.
ASKER
wassa, I tried your suggestion
yum install gcc
output :
Installed: gcc.x86_64 0:4.1.2-42.el5
Dependency Installed: glibc-devel.x86_64 0:2.5-24 glibc-headers.x86_64 0:2.5-24 libgomp.x86_64 0:4.1.2-42.el5
Complete!
this worked, so i got back to my original task
trying ghostscript install
cd /usr/local/src/ghostscript -8.63
./configure
output :
after doing lot of stuff, last four lines printed
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cups/pstopxl
config.status: creating cups/pstoraster
trying next command 'make'
make
-bash: make: command not found
-- problem --
make missing ?
http://www.linuxforums.org/forum/linux-newbie/24500-make-command-not-found.html
apt-get install
-bash: apt-get: command not found
http://www.php.ph/2007/12/24/centos-5-make-command-not-found/
yum -y install gcc automake autoconf libtool make
output :
Installed: libtool.x86_64 0:1.5.22-6.1 make.x86_64 1:3.81-3.el5
Dependency Installed: autoconf.noarch 0:2.59-12 automake.noarch 0:1.9.6-2.1 imake.x86_64 0:1.0.2-3
Complete!
again trying make command
make
output :
after doing lot of stuff, last few lines printed
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [obj/mkromfs] Error 1
yum install gcc
output :
Installed: gcc.x86_64 0:4.1.2-42.el5
Dependency Installed: glibc-devel.x86_64 0:2.5-24 glibc-headers.x86_64 0:2.5-24 libgomp.x86_64 0:4.1.2-42.el5
Complete!
this worked, so i got back to my original task
trying ghostscript install
cd /usr/local/src/ghostscript
./configure
output :
after doing lot of stuff, last four lines printed
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cups/pstopxl
config.status: creating cups/pstoraster
trying next command 'make'
make
-bash: make: command not found
-- problem --
make missing ?
http://www.linuxforums.org/forum/linux-newbie/24500-make-command-not-found.html
apt-get install
-bash: apt-get: command not found
http://www.php.ph/2007/12/24/centos-5-make-command-not-found/
yum -y install gcc automake autoconf libtool make
output :
Installed: libtool.x86_64 0:1.5.22-6.1 make.x86_64 1:3.81-3.el5
Dependency Installed: autoconf.noarch 0:2.59-12 automake.noarch 0:1.9.6-2.1 imake.x86_64 0:1.0.2-3
Complete!
again trying make command
make
output :
after doing lot of stuff, last few lines printed
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [obj/mkromfs] Error 1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
would be something like:
yum install gcc