Click to See Complete Forum and Search --> : Gplflash
Loismustdie
01-07-2007, 08:42 PM
I am trying to install GPLflash and I go to run the configure text file in the download and it returns a message like this:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
I believe there is an error in there but can't seem to figure it out. Anyone know anything to do.
dkeav
01-07-2007, 09:10 PM
checking for c++... no
you dont have a c++ compiler installed, install it
Loismustdie
01-07-2007, 10:05 PM
checking for c++... no
you dont have a c++ compiler installed, install it
i do have a c++ compiler, I mean it says I have cpp but it won't come up in there. Any more advice.
dkeav
01-07-2007, 10:14 PM
what distro is it
Loismustdie
01-07-2007, 11:44 PM
It is Fedora Core 6
dkeav
01-08-2007, 12:13 AM
yum install g++
That alone may not be enough for compiling a project, you could try:
yum groupinstall "Development Tools"
But is there any particular reason you want to install gplflash? The developers abondoned it and jumped to gnash, which has GNU backing.
http://gplflash.sourceforge.net/
Gnash seems to be included in yum (yum search gnash) in the extras repo.
crow2icedearth
01-08-2007, 02:02 AM
well see where g++ is installed by doing whereis g++ then look to see the output of the library and make sure your /etc/ld.so.config and make sure you have the correcd library path to where g++ is locaed.
then run ldconfig
if you do have g++ installed the ./configure can't find it. you may have to symbolic link it to the path that the ./configure wants. i would also look in the ./configure file to see where it is looking for the g++ path .
good luck .
crow2icedearth
01-08-2007, 02:04 AM
looking at the configure output
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
it just requires any C++ compiler so install gcc and g++ and you will be all set. just update the /etc/ld.so.config i said after you add g++ compiler :)
looking at the configure output
it just requires any C++ compiler so install gcc and g++ and you will be all set.
Not quite, it just looked for a compiler and failed, but there may be more dependencies (required libraries) later.
This is from the GPLflash readme:
Dependencies: libjpeg, zlib, madlib and a X-server (and their
devel-packages).
edit:
well see where g++ is installed by doing whereis g++ then look to see the output of the library and make sure your /etc/ld.so.config and make sure you have the correcd library path to where g++ is locaed.
Ah, if g++ indeed is already installed (which I doubt), then its directory should be added to the $PATH, not /etc/ld.co.conf
crow2icedearth
01-08-2007, 02:09 PM
Ah, if g++ indeed is already installed (which I doubt), then its directory should be added to the $PATH, not /etc/ld.co.conf
thats correct it will be added to path. librarys are added to /etc/ld.so.conf and it sounds like the ./configure script isnt finding the headers for your compilier. thats why i said to make sure the that library path is correct. not the $PATH .
\Dependencies: libjpeg, zlib, madlib and a X-server (and their
devel-packages).
well thats given. you have to install the dependencies if there are any. I had no clue what it relies on because i don't use that program. Just make sure all the Dependencies are installed as your library path is correct.
crow2icedearth
01-08-2007, 02:12 PM
Quote:
Originally Posted by crow2icedearth
looking at the configure output
it just requires any C++ compiler so install gcc and g++ and you will be all set.
Not quite, it just looked for a compiler and failed, but there may be more dependencies (required libraries) later.
yes from the configure file it is looking for many C++ compilers . I would aslo open up the configure file and find the line that has where its looking for the compilers......
voidinit
01-08-2007, 05:48 PM
i do have a c++ compiler, I mean it says I have cpp but it won't come up in there. Any more advice.
This is a common source of confusion. cpp is the C pre processor, g++ is the C++ compiler.
Loismustdie
01-08-2007, 06:35 PM
That alone may not be enough for compiling a project, you could try:
yum groupinstall "Development Tools"
But is there any particular reason you want to install gplflash? The developers abondoned it and jumped to gnash, which has GNU backing.
http://gplflash.sourceforge.net/
Gnash seems to be included in yum (yum search gnash) in the extras repo.
I tried to do this and every other yum and they all return basically this same message:
yum groupinstall "Development Tools"
Loading "installonlyn" plugin
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30977)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 85, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 199, in getOptionsConfig
errorlevel=opts.errorlevel)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 125, in doConfigSetup
self.conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 597, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 656, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed
webwolf
01-09-2007, 02:42 AM
It looks to me like you have a python problem
Hm ,according to this thread (http://www.linuxforums.org/forum/redhat-fedora-linux-help/26868-rpm-database-recovery.html), you could try (as root):
rm -f /var/lib/rpm/__db*
db_verify /var/lib/rpm/Packages
rpm --rebuilddb