LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install pdksh ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-pdksh-701923/)

serdar_17 02-03-2009 10:12 AM

how to install pdksh ?
 
I setup Linux 10.0 and have to install pdksh
I downloaded the pdksh file version 5.2.14 from internet
I extract the tar file and i don't know how to install
I don't know the commands for installation
Can someone please help me ?
Thanks a lot

raju.mopidevi 02-03-2009 10:30 AM

hii serdar,

follow these instructions if it is tar.gz or tar.gz2 format .
Code:

tar -xvzf filename
after that change directory , which is created with same name as filename.
Code:

cd filename
check for install, or read me files, follow those instructions
if not found ,then
Code:

./configure
some process will be done
now enter superuser password , to install
Code:

su
password:

after that
Code:

make
finally
Code:

make install
it's over

serdar_17 02-03-2009 10:48 AM

hi raju.mopidevi
Thanks for your interest
I followed the steps after make command i get the error message
These are the command lines written below

creating Makefile
creating config.h
linux:/home/dta/pdksh-5.2.14 # make
CONFIG_FILES="" CONFIG_HEADERS=config.h ./config.status
creating config.h
config.h is unchanged
date > stamp-h
cc -c -DHAVE_CONFIG_H -I. -I. -g alloc.c
make: cc: Command not found
make: *** [alloc.o] Error 127
linux:/home/dta/pdksh-5.2.14 # make install
./mkinstalldirs /usr/local/bin /usr/local/man/man1
cc -c -DHAVE_CONFIG_H -I. -I. -g alloc.c
make: cc: Command not found
make: *** [alloc.o] Error 127


Can you help to fix this problem ?

colucix 02-03-2009 10:51 AM

You have to install a C compiler. Which linux distribution is this Linux 10.0? Maybe Fedora 10? If in doubt run
Code:

lsb_release -a
to find out.

colucix 02-03-2009 10:52 AM

Sorry... erroneous double post during hang up time!

makyo 02-03-2009 11:38 AM

Hi.

If you are using Fedora 10, the real ksh is available from the repositories:
Code:

$ yum info ksh
Loaded plugins: refresh-packagekit
Available Packages
Name      : ksh
Arch      : i386
Version    : 20080725
Release    : 4.fc10
Size      : 770 k
Repo      : fedora
Summary    : The Original ATT Korn Shell
URL        : http://www.kornshell.com/
License    : CPL
Description: KSH-93 is the most recent version of the KornShell by David Korn of
          : AT&T Bell Laboratories. KornShell is a shell programming language,
          : which is upward compatible with "sh" (the Bourne Shell).

If you are the administrator, you can install it with:
Code:

yum install ksh
Using a local utility version, I see:
Code:

$ version =o ksh
OS, ker|rel, machine: Linux, 2.6.27.12-170.2.5.fc10.i686, i686
Distribution        : Fedora release 10 (Cambridge)
ksh 93t

See man yum for details ... cheers, makyo

raju.mopidevi 02-03-2009 07:40 PM

hi serdar,
you are given about which distribution you are using !.
your shell doesn't have make and make install commands. That's why you are getting message as command not found.you have to install base repositories from your distribution DVD pack or any other.

serdar_17 02-04-2009 02:21 AM

Quote:

Originally Posted by raju.mopidevi (Post 3431088)
hi serdar,
you are given about which distribution you are using !.
your shell doesn't have make and make install commands. That's why you are getting message as command not found.you have to install base repositories from your distribution DVD pack or any other.

hi raju.mopidevi,
I am using Suse 10.0
Which add-on should I install for this problem ?

colucix 02-04-2009 03:21 AM

In suse you have to open Yast Software Management. From there select the Pattern view from the Filter drop down menu. Select Base Development for installation and the trick is done. This is on the most recent version of OpenSuse. I don't remember exactly how it was in Suse 10.0, but the procedure will be very similar, I guess.

serdar_17 02-04-2009 09:24 AM

i install the gcc rpm files and try to install pdksh
i get an error message written below
what does it mean
what should i do ?

creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
linux:/home/dta/pdksh-5.2.14 # make
CONFIG_FILES="" CONFIG_HEADERS=config.h ./config.status
creating config.h
config.h is unchanged
date > stamp-h
cc -c -DHAVE_CONFIG_H -I. -I. -g alloc.c
In file included from sh.h:19,
from alloc.c:5:
/usr/include/sys/types.h:67: error: two or more data types in declaration specif
iers
/usr/include/sys/types.h:72: error: two or more data types in declaration specif
iers
/usr/include/sys/types.h:82: error: two or more data types in declaration specif
iers
/usr/include/sys/types.h:88: error: two or more data types in declaration specif
iers
/usr/include/sys/types.h:100: error: two or more data types in declaration speci
fiers
In file included from /usr/include/sys/types.h:216,
from sh.h:19,
from alloc.c:5:
/usr/include/sys/select.h:38: error: two or more data types in declaration speci
fiers
In file included from alloc.c:5:
sh.h:30: warning: conflicting types for built-in function ‘malloc’
sh.h:33: warning: conflicting types for built-in function ‘exit’
In file included from alloc.c:5:
sh.h:100: warning: conflicting types for built-in function ‘memset’
sh.h:106: warning: conflicting types for built-in function ‘memmove’
In file included from sh.h:114,
from alloc.c:5:
/usr/lib/gcc/i586-suse-linux/4.0.2/include/varargs.h:4:2: error: #error "GCC no
longer implements <varargs.h>."
/usr/lib/gcc/i586-suse-linux/4.0.2/include/varargs.h:5:2: error: #error "Revise
your code to use <stdarg.h>."
In file included from alloc.c:5:
sh.h:119: error: conflicting types for ‘__errno_location’
sh.h:119: note: an argument type that has a default promotion can’t match an emp
ty parameter name list declaration
/usr/include/bits/errno.h:38: error: previous declaration of ‘__errno_location’
was here
In file included from /usr/include/sys/file.h:25,
from sh.h:124,
from alloc.c:5:
/usr/include/fcntl.h:72: error: conflicting types for ‘open’
/usr/include/fcntl.h:72: note: a parameter list with an ellipsis can’t match an
empty parameter name list declaration
sh.h:44: error: previous declaration of ‘open’ was here
In file included from alloc.c:5:
sh.h:254:5: error: #error cannot find 32 bit type...
In file included from alloc.c:5:
sh.h:351: error: syntax error before ‘Tflag’
sh.h:351: warning: data definition has no type or storage class
sh.h:670: error: syntax error before ‘Coproc_id’
sh.h:670: warning: data definition has no type or storage class
sh.h:675: error: syntax error before ‘Coproc_id’
sh.h:675: warning: no semicolon at end of struct or union
sh.h:678: error: syntax error before ‘}’ token
sh.h:691: error: syntax error before ‘builtin_flag’
sh.h:691: warning: data definition has no type or storage class
In file included from sh.h:733,
from alloc.c:5:
table.h:14: error: syntax error before ‘Tflag’
table.h:14: warning: no semicolon at end of struct or union
table.h:24: error: ‘index’ redeclared as different kind of symbol
table.h:34: error: syntax error before ‘}’ token
alloc.c: In function ‘afreeall’:
alloc.c:148: warning: comparison of distinct pointer types lacks a cast
alloc.c: In function ‘alloc’:
alloc.c:185: warning: assignment from incompatible pointer type
alloc.c:202: warning: comparison of distinct pointer types lacks a cast
alloc.c:218: warning: assignment from incompatible pointer type
alloc.c: In function ‘asplit’:
alloc.c:253: warning: comparison of distinct pointer types lacks a cast
alloc.c: In function ‘aresize’:
alloc.c:294: warning: assignment from incompatible pointer type
alloc.c:344: warning: assignment from incompatible pointer type
alloc.c:352: warning: initialization from incompatible pointer type
alloc.c:387: warning: comparison of distinct pointer types lacks a cast
alloc.c:391: warning: passing argument 1 of ‘bcopy’ from incompatible pointer ty pe
alloc.c: In function ‘afree’:
alloc.c:425: warning: assignment from incompatible pointer type
alloc.c:439: warning: comparison of distinct pointer types lacks a cast
make: *** [alloc.o] Error 1
linux:/home/dta/pdksh-5.2.14 # make install
./mkinstalldirs /usr/local/bin /usr/local/man/man1
cc -c -DHAVE_CONFIG_H -I. -I. -g alloc.c
In file included from sh.h:19,
from alloc.c:5:
/usr/include/sys/types.h:67: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:72: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:82: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:88: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:100: error: two or more data types in declaration specifiers
In file included from /usr/include/sys/types.h:216,
from sh.h:19,
from alloc.c:5:
/usr/include/sys/select.h:38: error: two or more data types in declaration specifiers
In file included from alloc.c:5:
sh.h:30: warning: conflicting types for built-in function ‘malloc’
sh.h:33: warning: conflicting types for built-in function ‘exit’
In file included from alloc.c:5:
sh.h:100: warning: conflicting types for built-in function ‘memset’
sh.h:106: warning: conflicting types for built-in function ‘memmove’
In file included from sh.h:114,
from alloc.c:5:
/usr/lib/gcc/i586-suse-linux/4.0.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i586-suse-linux/4.0.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>."
In file included from alloc.c:5:
sh.h:119: error: conflicting types for ‘__errno_location’
sh.h:119: note: an argument type that has a default promotion can’t match an empty parameter name list declaration
/usr/include/bits/errno.h:38: error: previous declaration of ‘__errno_location’ was here
In file included from /usr/include/sys/file.h:25,
from sh.h:124,
from alloc.c:5:
/usr/include/fcntl.h:72: error: conflicting types for ‘open’
/usr/include/fcntl.h:72: note: a parameter list with an ellipsis can’t match an empty parameter name list declaration
sh.h:44: error: previous declaration of ‘open’ was here
In file included from alloc.c:5:
sh.h:254:5: error: #error cannot find 32 bit type...
In file included from alloc.c:5:
sh.h:351: error: syntax error before ‘Tflag’
sh.h:351: warning: data definition has no type or storage class
sh.h:670: error: syntax error before ‘Coproc_id’
sh.h:670: warning: data definition has no type or storage class
sh.h:675: error: syntax error before ‘Coproc_id’
sh.h:675: warning: no semicolon at end of struct or union
sh.h:678: error: syntax error before ‘}’ token
sh.h:691: error: syntax error before ‘builtin_flag’
sh.h:691: warning: data definition has no type or storage class
In file included from sh.h:733,
from alloc.c:5:
table.h:14: error: syntax error before ‘Tflag’
table.h:14: warning: no semicolon at end of struct or union
table.h:24: error: ‘index’ redeclared as different kind of symbol
table.h:34: error: syntax error before ‘}’ token
alloc.c: In function ‘afreeall’:
alloc.c:148: warning: comparison of distinct pointer types lacks a cast
alloc.c: In function ‘alloc’:
alloc.c:185: warning: assignment from incompatible pointer type
alloc.c:202: warning: comparison of distinct pointer types lacks a cast
alloc.c:218: warning: assignment from incompatible pointer type
alloc.c: In function ‘asplit’:
alloc.c:253: warning: comparison of distinct pointer types lacks a cast
alloc.c: In function ‘aresize’:
alloc.c:294: warning: assignment from incompatible pointer type
alloc.c:344: warning: assignment from incompatible pointer type
alloc.c:352: warning: initialization from incompatible pointer type
alloc.c:387: warning: comparison of distinct pointer types lacks a cast
alloc.c:391: warning: passing argument 1 of ‘bcopy’ from incompatible pointer type
alloc.c: In function ‘afree’:
alloc.c:425: warning: assignment from incompatible pointer type
alloc.c:439: warning: comparison of distinct pointer types lacks a cast
make: *** [alloc.o] Error 1
linux:/home/dta/pdksh-5.2.14 #


All times are GMT -5. The time now is 10:35 PM.