LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-03-2009, 10:12 AM   #1
serdar_17
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Rep: Reputation: 0
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
 
Old 02-03-2009, 10:30 AM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
Thumbs up

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
 
Old 02-03-2009, 10:48 AM   #3
serdar_17
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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 ?
 
Old 02-03-2009, 10:51 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
Old 02-03-2009, 10:52 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Sorry... erroneous double post during hang up time!

Last edited by colucix; 02-03-2009 at 10:55 AM.
 
Old 02-03-2009, 11:38 AM   #6
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 727

Rep: Reputation: 74
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
 
Old 02-03-2009, 07:40 PM   #7
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
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.
 
Old 02-04-2009, 02:21 AM   #8
serdar_17
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by raju.mopidevi View Post
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 ?
 
Old 02-04-2009, 03:21 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
Old 02-04-2009, 09:24 AM   #10
serdar_17
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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 #
 
  


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
Ubuntu as frugal install, iso install, img install? impossible? nooby Ubuntu 15 08-22-2008 06:49 AM
Red Hat Linux 9 install: error "No devices found to install ... gunneszz Red Hat 1 03-10-2008 05:52 AM
ksh/pdksh in ubuntu jsentianus Ubuntu 2 01-30-2008 09:28 AM
apt-get install dependency problems with hplip software and kde install for Agnula maybi7 Linux - Software 1 02-03-2007 06:16 PM
I can't install pdksh (Korn Shell) dr_sad Linux - Software 2 09-25-2005 11:25 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration