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/kerberos/bin://sbin://bin:/usr/local/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/kerberos/bin://sbin://bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin:/usr/libexec/gcc

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.
SWB-ConsultingAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wassa_rCommented:
I'm not into this but i think you can solve the compiler problem with installing gcc

would be something like:

yum install gcc
0
SWB-ConsultingAuthor Commented:
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
0
wassa_rCommented:
Maybe try to just install the things that cannot be found, this worked for me before.. but not sure if it will work in your case.

Hope you will be able to get the next error away by installing the lstdc++ ting:)

yum install compat-libstdc++.so.5
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Shell Scripting

From novice to tech pro — start learning today.