LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-21-2006, 05:24 PM   #1
Disku
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Rep: Reputation: 0
Problem with installing mysql desperatly


When i tried to configure my serv as a web server i realised that something is fishi..
1-I managed to install php
2-I managed to install apache
3-Mysql installation screwed...

I need that on my server

I'm using Fedora core 3...Don't tell me to upgrade coz my server is far away from me

The apt -get isn't functioning
The yum isn't functioning

And the last solution was installing it from source

I got the mysql-4.1.10....

I decompress it using rpm -i
I give the command: ./configure --prefix=/usr/local/mysql --with-unix-sock-path=/tmp/mysql.sock --with-charset=utf8

Here is all the compilation:
Code:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
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 build environment is sane... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
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 whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C preprocessor... gcc -E
checking "C Compiler version"... "gcc gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)"
./configure: line 4208: g++: command not found
checking "C++ compiler version"... "g++ "
checking for ranlib... ranlib
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... yes
checking for /usr/local/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/local/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Well i thaught that downloading the gcc compiler is a solution but no...good... i downloaded the i386 version i don't know if it is a problem

Here is the config.log to see and help me with:
Code:
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
IS_LINUX=''
KILL=''
LD='/usr/local/bin/ld'
LDFLAGS=''
LIBDL=''
LIBEDIT_LOBJECTS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIB_EXTRA_CCFLAGS=''
LM_CFLAGS=''
LN=''
LN_CP_F=''
LN_S='ln -s'
LOCAL_FALSE=''
LOCAL_TRUE='#'
LTLIBOBJS=''
MACHINE_TYPE='i686'
MAKEINDEX=''
MAKEINFO='${SHELL} /usr/local/src/mysql-4.1.10/missing --run makeinfo'
MAKE_BINARY_DISTRIBUTION_OPTIONS=''
MAKE_SHELL=''
MT_INCLUDES=''
MT_LD_ADD=''
MV=''
MYSQLD_DEFAULT_SWITCHES=''
MYSQLD_EXTRA_LDFLAGS=''
MYSQLD_USER=''
MYSQL_BASE_VERSION='4.1'
MYSQL_NO_DASH_VERSION='4.1.10'
MYSQL_SERVER_SUFFIX=''
MYSQL_TCP_PORT=''
MYSQL_TCP_PORT_DEFAULT='3306'
MYSQL_UNIX_ADDR=''
MYSQL_VERSION_ID='40110'
NDB_DEFS=''
NDB_SCI_INCLUDES=''
NDB_SCI_LIBS=''
NDB_VERSION_BUILD='10'
NDB_VERSION_MAJOR='4'
NDB_VERSION_MINOR='1'
NDB_VERSION_STATUS=''
NOINST_LDFLAGS=''
NON_THREADED_LIBS=''
OBJEXT='o'
PACKAGE='mysql'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PDFLATEX=''
PDFMANUAL=''
PERL5=''
PERL=''
PROTOCOL_VERSION='10'
PS=''
RANLIB='ranlib'
RM=''
SAVE_ASFLAGS=''
SAVE_CFLAGS=''
SAVE_CXXFLAGS=''
SAVE_CXXLDFLAGS=''
SAVE_LDFLAGS=''
SED='/bin/sed'
SET_MAKE=''
SHARED_LIB_VERSION='14:0:0'
SHELL='/bin/sh'
STATIC_NSS_FLAGS=''
STRIP=''
SYSTEM_TYPE='pc-linux-gnu'
TAR=''
TERMCAP_LIB=''
THREAD_LOBJECTS=''
THREAD_LPROGRAMS=''
VERSION='4.1.10'
WRAPLIBS=''
YACC=''
ZLIB_DEPS=''
ZLIB_INCLUDES=''
ZLIB_LIBS=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_F77=''
ac_ct_GETCONF=''
ac_ct_RANLIB='ranlib'
ac_ct_STRIP=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE='#'
am__include='include'
am__leading_dot='.'
am__quote=''
bdb_includes=''
bdb_libs=''
bdb_libs_with_path=''
bench_dirs=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
docs_dirs=''
exec_prefix='NONE'
fs_dirs=''
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
innodb_includes=''
innodb_libs=''
innodb_system_libs=''
install_sh='/usr/local/src/mysql-4.1.10/install-sh'
isam_libs=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libmysqld_dirs=''
linked_client_targets=''
linked_netware_sources=''
localstatedir='${prefix}/var'
man_dirs=''
mandir='${prefix}/man'
mkdir_p='mkdir -p -- .'
ndb_bin_am_ldflags=''
ndb_cxxflags_fix=''
ndb_mgmclient_libs=''
ndb_opt_subdirs=''
ndb_port=''
ndb_port_base=''
ndb_transporter_opt_objs=''
ndbcluster_includes=''
ndbcluster_libs=''
ndbcluster_system_libs=''
netware_dir=''
oldincludedir='/usr/include'
openssl_includes=''
openssl_libs=''
orbit_idl=''
orbit_includes=''
orbit_libs=''
prefix='/usr/local/mysql'
program_transform_name='s,x,x,'
pstack_dirs=''
pstack_libs=''
readline_basedir=''
readline_dir=''
readline_h_ln_cmd=''
readline_link=''
readline_topdir=''
sbindir='${exec_prefix}/sbin'
server_scripts=''
sharedstatedir='${prefix}/com'
sql_client_dirs=''
sql_server_dirs=''
sql_union_dirs=''
subdirs=''
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'
thread_dirs=''
tools_dirs=''
uname_prog=''
vio_dir=''
vio_libs=''
zlib_dir=''

## ------------- ##
## Output files. ##
## ------------- ##

AVAILABLE_LANGUAGES_ERRORS_RULES='./ac_available_languages_fragment'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define DOT_FRM_VERSION 6
#define HAVE_DLFCN_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define MACHINE_TYPE "i686"
#define NDB_VERSION_BUILD 10
#define NDB_VERSION_MAJOR 4
#define NDB_VERSION_MINOR 1
#define NDB_VERSION_STATUS ""
#define PACKAGE "mysql"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PROTOCOL_VERSION 10
#define STDC_HEADERS 1
#define SYSTEM_TYPE "pc-linux-gnu"
#define VERSION "4.1.10"
#endif
#ifdef __cplusplus
#include <stdlib.h>
Please help me cos im confused and very stressed
 
Old 11-21-2006, 07:13 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
The apt -get isn't functioning
The yum isn't functioning

And what is exactly wrong with it?

IMHO the best way to mend your problems starts by correcting these errors first, then you can add packages from Fedora or Fedora Legacy. With an RPM-based system you would only need to compile packages from source if you can't build the package or need to do modifications that are easier done with a source tarball. Using RPM's makes your server easier managable compared to mixing sources and having to manually track updates and such.

I suggest upgrading yum first: "rpm --test --upgrade http://download.fedoralegacy.org/fed...fc3.noarch.rpm 2>&1 | tee /tmp/rpm.err". If it errors out you can copy and paste the error lines from /tmp/rpm.err. Alternatively you can first remove yum, then install instead of upgrade the mentioned rpm and if there's dependencies just locate them in any Fedora or Fedora Legacy mirror until you get yum going.
 
Old 11-22-2006, 04:40 PM   #3
Disku
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
thanx for helping me...this is the error

cat /tmp/rpm.err
error: Failed dependencies:
/bin/bash is needed by yum-2.2.2-0.fc3.noarch
/bin/sh is needed by yum-2.2.2-0.fc3.noarch
/sbin/chkconfig is needed by yum-2.2.2-0.fc3.noarch
/sbin/service is needed by yum-2.2.2-0.fc3.noarch
/usr/bin/python is needed by yum-2.2.2-0.fc3.noarch
coreutils is needed by yum-2.2.2-0.fc3.noarch
libxml2-python is needed by yum-2.2.2-0.fc3.noarch
python is needed by yum-2.2.2-0.fc3.noarch
rpm >= 0:4.1.1 is needed by yum-2.2.2-0.fc3.noarch
rpm-python is needed by yum-2.2.2-0.fc3.noarch
 
Old 11-22-2006, 05:32 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
OK, running "rpm -qR yum" shows these are normal deps, but why they get shown beats me unless you managed to not install or deinstall those. Tell us what happened before apt-get and yum got screwed up because apps usually don't do that all by themselves. While you're at it check if you got those packages installed, what the versions are according to the database and verify their status:
rpm -q --queryformat="%{name}-%{version}-%{release}\n" bash chkconfig coreutils initscripts libxml2-python python rpm rpm-python yum 2>&1 | tee -a /tmp/rpm.err.1
rpm -q --verify bash chkconfig coreutils initscripts libxml2-python python rpm rpm-python yum 2>&1 | tee -a /tmp/rpm.err.1
Now find the RPM version for yum that is supposed to be your current version and try to --test install it and report back errors. BTW, does this server have regular backups (or any) made at all?
 
Old 11-23-2006, 10:11 AM   #5
Disku
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Yes

First of all i want to make clear some things....and why apt-get and yum does not work...

Yum wasn't installed at all....and i tried to install it but i did something wrong...i don't know..why i observed that some files were missing too....

I'v tested what you wrote and it gives me an error...

Code:
rpm -q --queryformat="%{name}-%{version}-%{release}\n" bash chkconfig coreutils initscripts libxml2-python python rpm rpm-python yum 2>&1 | tee -a /tmp/rpm.err.1
package bash is not installed
package chkconfig is not installed
package coreutils is not installed
package initscripts is not installed
package libxml2-python is not installed
package python is not installed
package rpm is not installed
package rpm-python is not installed
package yum is not installed
 
  


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
Shutting down (Need help Desperatly) Cybermagellan Linux - Software 4 03-15-2005 04:22 PM
Problem Installing MySQL kaplan71 Mandriva 1 05-12-2004 09:35 PM
CM8738 6 Channel Problem Need help Desperatly! Boffy Linux - Hardware 0 12-13-2003 08:19 AM
need a script desperatly... ooagentbender Linux - Software 8 11-06-2003 07:43 PM
Desperatly need Help: SNAFU SpookMonkey Linux - General 9 02-13-2003 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 AM.

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
Open Source Consulting | Domain Registration