Ticket #2054 (closed defect: worksforme)
Incorrect configure
| Reported by: | pavlinux | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 4.7 |
| Component: | mc-core | Version: | master |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Branch state: | no branch | Votes for changeset: |
Description
1.
# mc
bash: /usr/share/mc/bin/mc-wrapper.sh: No such file or directory
2. Linking directory set to /usr/lib, but in configure i specified --libdir=/usr/lib64
....
gcc-4.5 -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\""/usr/share/mc/"\" -DLOCALEDIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/usr/share/mc/"\" -DSAVERDIR=\""/usr/share/mc"\" -I/usr/include -L/usr/lib
My Configure script:
#!/bin/sh
unset CC CFLAGS
make clean;
make distclean;
CC="gcc-4.5"
CFLAGS="-funit-at-a-time -frecord-gcc-switches \
-m64 -g0 -O3 -march=native -mtune=native \
-funroll-all-loops -ftree-vectorize -pipe \
-fomit-frame-pointer -fmerge-all-constants \
-ffreestanding -D_FORTIFY_SOURCE=2"
export CC CFLAGS
./configure --prefix=/usr \
--sysconfdir=/usr/share \
--sharedstatedir=/usr/share \
--libexecdir=/usr/share \
--localstatedir=/var \
--libdir=/usr/lib64 \
--includedir=/usr/include \
--datarootdir=/usr/share \
--datadir=/usr/share \
--infodir=/usr/share/info \
--localedir=/usr/share/locale \
--mandir=/usr/share/man \
--build="x86_64-gnu-linux" \
--host="x86_64-gnu-linux" \
--disable-extcharset \
--enable-netcode \
--enable-background \
--enable-utf8 \
--with-mmap \
--with-x \
--with-vfs \
--with-mcfs \
--with-samba \
--with-configdir=/etc/samba \
--with-codepagedir=/usr/lib64/samba/codepages \
--without-gpm-mouse \
--with-subshell \
--with-screen=slang \
--with-edit \
--without-ext2undel \
--without-libintl-prefix \
--without-libiconv-prefix;
Change History
comment:2 Changed 16 years ago by pavlinux
This very old bug.
RECOMENDATION
Is configured all modifiable parameters on non-standard values.
For ex.
./configure --prefix=/usr/xyz/mcbin \
--sysconfdir=/usr/fake/abcdef \
--sharedstatedir=/usr/fakestate\foo \
--libexecdir=/usr/fakexec \
--localstatedir=/fakevar/mcvar \
--libdir=/usr/lib9999 \
--includedir=/usr/fakeinclude \
--datarootdir=/usr/fakeroot \
--datadir=/usr/ooo/fakedata \
--infodir=/usr/zzz/fakeinfo \
--localedir=/usr/ijk/fakelocale \
--mandir=/usr/lmn/fakeman;
And try run. 100% that will not work :)
comment:3 in reply to: ↑ description Changed 16 years ago by and
Hi pavlinux
Replying to pavlinux:
1.
# mc
bash: /usr/share/mc/bin/mc-wrapper.sh: No such file or directory
looks like an obsolete bash alias to me.
Fix your bash alias to correct mc-wrapper.sh location.
2. Linking directory set to /usr/lib, but in configure i specified --libdir=/usr/lib64
You using --with-screen=slang so please try this to change your libdir wish:
--with-slang-libs=/usr/lib64

mc-wrapper.sh exist in /usr/share/mc/ but not in /usr/share/mc/bin