LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-08-2015, 05:41 AM   #1
yu_chem
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Rep: Reputation: Disabled
How to install libgcj into centOS 7


Hello everyone

I'm puzzled. Now I want to install pkftk software to CentOS7. pkftk require libgcj. But libgcj didn't was installed into my OS and so I try to install libgcj. However I couldn't find libgcj for 64bit-OS and then I think that when gcj is installed, libgcj will is installed together.
Is That right? However errors happen like following
question 1: Is there libgcj for 64-bit OS?
question 2: What I should do for avoiding errors?

bellow error and message are translated from japanese to English

as for libgcj-2.95.1
Configuring for a x86_64-unknown-linux-gnu host.
*** Cannot currently configure in source tree.

as for gcc-5.1.0
./configure --disable-multilib --enable-languages=c,c++,java,objc,fortran
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g" "CXXFLAGS=-g" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/local/lib" "prefix=/usr/local" "tooldir=/usr/local/x86_64-unknown-linux-gnu" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[4]: directory enter `/home/yuu/desktop/gcc-5.1.0/host-x86_64-unknown-linux-gnu/zlib'
if [ -z "32" ]; then \
true; \
else \
rootpre=`${PWDCMD-pwd}`/; export rootpre; \
srcrootpre=`cd ../.././zlib; ${PWDCMD-pwd}`/; export srcrootpre; \
lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
compiler="gcc"; \
for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
dir=`echo $i | sed -e 's/;.*$//'`; \
if [ "${dir}" = "." ]; then \
true; \
else \
if [ -d ../${dir}/${lib} ]; then \
flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
if (cd ../${dir}/${lib}; make \
CFLAGS="-g ${flags}" \
CCASFLAGS=" ${flags}" \
FCFLAGS=" ${flags}" \
FFLAGS=" ${flags}" \
ADAFLAGS=" ${flags}" \
prefix="/usr/local" \
exec_prefix="/usr/local" \
GCJFLAGS=" ${flags}" \
GOCFLAGS=" ${flags}" \
CXXFLAGS="-g ${flags}" \
LIBCFLAGS="-g -O2 ${flags}" \
LIBCXXFLAGS="-g -O2 -fno-implicit-templates ${flags}" \
LDFLAGS=" ${flags}" \
MULTIFLAGS="${flags}" \
DESTDIR="" \
INSTALL="/usr/bin/install -c" \
INSTALL_DATA="/usr/bin/install -c -m 644" \
INSTALL_PROGRAM="/usr/bin/install -c" \
INSTALL_SCRIPT="/usr/bin/install -c" \
all); then \
true; \
else \
exit 1; \
fi; \
else true; \
fi; \
fi; \
done; \
fi
make[5]: directory enter `/home/yuu/desktop/gcc-5.1.0/host-x86_64-unknown-linux-gnu/32/zlib'
make[5]: *** target there isn't role to `all' for make. cancel.
make[5]: directory go out from `/home/yuu/desktop/gcc-5.1.0/host-x86_64-unknown-linux-gnu/32/zlib'
make[4]: *** [multi-do] error 1
make[4]: directory go out from`/home/yuu/desktop/gcc-5.1.0/host-x86_64-unknown-linux-gnu/zlib'
make[3]: *** [all-multi] error 2
make[3]: directory go out from `/home/yuu/desktop/gcc-5.1.0/host-x86_64-unknown-linux-gnu/zlib'
make[2]: *** [all-stage1-zlib] error 2
make[2]: directory go out from `/home/yuu/desktop/gcc-5.1.0'
make[1]: *** [stage1-bubble] error 2
make[1]: directory `/home/
 
Old 07-08-2015, 08:42 AM   #2
azuahaha
LQ Newbie
 
Registered: May 2013
Posts: 20

Rep: Reputation: Disabled
Check this;
http://stackoverflow.com/questions/9...-centos-redhat
 
Old 07-09-2015, 01:04 AM   #3
yu_chem
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you for answer.
If I understood correctly, There are not the ways that I install libgcj?
Now I use CentOS 7 and not good at reading English.
So Could anyone explain how to install libgcj easily?
Sorry,

as for libgcj-2.95.1
./configure

Configuring for a x86_64-unknown-linux-gnu host.
*** Cannot currently configure in source tree.

as for gcc-5.1.0
./configure --disable-multilib --enable-languages=c,c++,java,objc,fortran
 
Old 07-09-2015, 03:00 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
BE WARNED!!!

if you overwrite the default gcc 4.8 with 5.1
you WILL CAUSE MAJOR PROBLEMS!!!!
you need to use the sufix option and FORCE the name of the compiler to be "gcc-5.1" !!! and NOT!!! " gcc "

also BE AWARE !!!!

almost non of the software for Cent/rhel has been YET ported to build in gcc5.1

YOU!!! will have yo port the software YOUR SELF!!!

Last edited by John VV; 07-09-2015 at 03:01 PM.
 
Old 07-09-2015, 03:03 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
ALSO
this is a almost dulpacate of YOUR OTHER thread on this
please DO NOT double post
http://www.linuxquestions.org/questi...-a-4175547568/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error while loading libgcj.so.11 ... how to sort it out r4jiv007 Programming 1 09-30-2011 07:29 PM
Can I run a GCJ program without libgcj.so? halfpower Programming 11 11-23-2006 04:45 AM
how to install libgcj.so.5 sickdude Linux - Software 4 05-10-2006 04:43 AM
the problem of libgcj winpro Linux - Newbie 2 08-28-2005 02:18 PM
Problem with GCC 3.4.3 and libgcj Draco098 Linux - Software 2 03-01-2005 08:21 AM


All times are GMT -5. The time now is 01:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration