LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing a program (https://www.linuxquestions.org/questions/linux-newbie-8/installing-a-program-187363/)

PhuckFonix 05-29-2004 12:28 PM

Installing a program
 
Code:

[root@ fixdisktable-0.3]# ls
ChangeLog      config.sub*  configure.in  fixdisktable.c  llseek.c    printsector.c
config.guess*  configure*  fat_io.h      install-sh*    Makefile.in  printtable.c

I tried this:

Code:

[root@ fixdisktable-0.3]# ./install-sh
install:        no input file specified

How I install this program and then execute it? There is no INSTALL or README file. : (

xlord 05-29-2004 12:40 PM

type ./configure then make ( su to root ) then make install

PhuckFonix 05-29-2004 12:49 PM

Code:

[root@ fixdisktable-0.3]# ./configure
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking host system type... i586-unknown-linuxoldld
checking for stdlib.h... yes
checking for unistd.h... yes
checking for stdarg.h... yes
checking for errno.h... yes
checking for mntent.h... yes
checking for dirent.h... yes
checking for getopt.h... yes
checking for linux/fd.h... yes
checking for linux/major.h... yes
checking for sys/disklabel.h... no
checking for sys/time.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking whether llseek declared in unistd.h... no
checking for llseek... yes
On linuxoldld systems, prefix defaults to /usr
updating cache ./config.cache
creating ./config.status
creating Makefile
[root@ fixdisktable-0.3]# make
gcc -Wall -g -O2  -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DHAVE_ERRNO_H=1 -DHAVE_MNTENT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_LINUX_FD_H=1 -DHAVE_LINUX_MAJOR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_LLSEEK=1    -c -o fixdisktable.o fixdisktable.c
gcc -Wall -g -O2  -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DHAVE_ERRNO_H=1 -DHAVE_MNTENT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_LINUX_FD_H=1 -DHAVE_LINUX_MAJOR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_LLSEEK=1    -c -o llseek.o llseek.c
gcc -static fixdisktable.o llseek.o  -o fixdisktable
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [fixdisktable] Error 1
[root@ fixdisktable-0.3]# make install
strip fixdisktable
strip: fixdisktable: No such file or directory
make: *** [install] Error 1
[root@ fixdisktable-0.3]# make
gcc -static fixdisktable.o llseek.o  -o fixdisktable
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [fixdisktable] Error 1
[root@ fixdisktable-0.3]#

Thank you for replying. There is a problem in the make process.

xlord 05-29-2004 01:25 PM

hmm i really cant say mutch cause i never tried to install that program .. but see if there is an option on the configure script that lets you disable that.. or you might be missing dependencies.. no entirely sure.. what distroy is this? make sure that ld is the correct path

xlord 05-29-2004 01:31 PM

Ok i tried it on my system and i got a successful install ( slackware )

PhuckFonix 05-29-2004 01:31 PM

I'm running Mandrake 10.0 Official, I'm still running it from the same path. Maybe someone made an RPM format of this? It's not on RPM search. Any alternatives?

xlord 05-29-2004 01:36 PM

see if mandrake has targz2rpm this way you can convert it to rpm


All times are GMT -5. The time now is 03:39 PM.