You are not logged in.

#1 2012-01-20 19:28:05

srikanthradix
Member
Registered: 2010-10-19
Posts: 35

Installing ksh on my arch machine. [ SOLVED ]

Which INIT package should I download from this site?
http://www2.research.att.com/~gsf/cgi-b … &name=INIT

Mine is a 64-bit machine. Does it mean, I have to download " 2011-02-08  BASE  *     linux.i386-64"? from the site?

If I download any packages, they are tgz files.
I gunzip'ped them and untarred them. What should I do next?

More information about my problem is here..

http://unix.stackexchange.com/questions … arch-linux

I appreciate your help.

Last edited by srikanthradix (2012-01-21 00:37:42)


This profile is scheduled for deletion.

Offline

#2 2012-01-20 19:32:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Installing ksh on my arch machine. [ SOLVED ]

Use https://aur.archlinux.org/packages.php?ID=13772 or https://aur.archlinux.org/packages.php?ID=40749 .

Edit: Yes, you should try installing Oracle from the AUR.

Edit 2: If things don't work as expected, research them first. That's why you should know how AUR works so you're not lost if e.g. you can't build a package the usual way. Read https://aur.archlinux.org/packages/ks/ksh/PKGBUILD

Last edited by karol (2012-01-20 19:43:17)

Offline

#3 2012-01-20 19:54:20

srikanthradix
Member
Registered: 2010-10-19
Posts: 35

Re: Installing ksh on my arch machine. [ SOLVED ]

I tried installing from the aur as well.

I forgot to post them.

aurbuild -s oracle
as well as
aurbuild -s ksh. Both didn't work.

But, I forgot to edit the PKGBUILD, to make it 2011.
source=("INIT.2011-02-08.tgz" "ast-ksh.2011-02-08.tgz")

Thank you so much for help. I really appreciate it.


This profile is scheduled for deletion.

Offline

#4 2012-01-20 19:58:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Installing ksh on my arch machine. [ SOLVED ]

But what didn't work? What errors?
Did you do as the ksh PKGBUILD told you to do?

Offline

#5 2012-01-20 22:38:11

srikanthradix
Member
Registered: 2010-10-19
Posts: 35

Re: Installing ksh on my arch machine. [ SOLVED ]

                                      ksh

              ---------------------------------------------------
                1) View/Edit PKGBUILD
              ---------------------------------------------------
              * b)  Build with makepkg and install with pacman.
                s)  Save build files and build.
                n)  Next package. Skip this package.
                q)  Quit without building.
              ---------------------------------------------------

              Enter a selection: [b] b
==> Checking Buildtime Dependencies... 

==> Checking Runtime Dependencies... 

==> Making package: ksh 2011.02.08-1 (Fri Jan 20 16:38:02 CST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> ERROR: INIT.2011-02-08.tgz was not found in the build directory and is not a URL.
aurbuild: could not build ksh with makepkg.
Build directory retained at /var/tmp/aurbuild/build/ksh
You can visit the directory, fix the problem, and run makepkg.

This profile is scheduled for deletion.

Offline

#6 2012-01-20 22:40:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Installing ksh on my arch machine. [ SOLVED ]

You can visit the directory, fix the problem, and run makepkg.

And?
Can you show us the directory? Just to be sure there is INIT.2011-02-08.tgz in there.

Offline

#7 2012-01-20 22:46:41

srikanthradix
Member
Registered: 2010-10-19
Posts: 35

Re: Installing ksh on my arch machine. [ SOLVED ]

I edited the source to be URL. How to give the username and password for downloading?

The public username and password seems to be

When prompted for license agreement authorization use this User Name:    I accept www.opensource.org/licenses/eclipse
and this Password: .

==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading INIT.2010-03-09.linux.i386-64.tgz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100   518    0   518    0     0    222      0 --:--:--  0:00:02 --:--:--   222
  -> Downloading ast-ksh.2010-03-09.linux.i386-64.tgz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   521    0   521    0     0    775      0 --:--:-- --:--:-- --:--:--   775
==> Validating source files with md5sums...
    INIT.2010-03-09.linux.i386-64.tgz ... FAILED
    ast-ksh.2010-03-09.linux.i386-64.tgz ... FAILED
==> ERROR: One or more files did not pass the validity check!

This profile is scheduled for deletion.

Offline

#8 2012-01-20 22:48:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Installing ksh on my arch machine. [ SOLVED ]

You can download the files by hand, place them in the build directory and fix checksums in the PKGBUILD if necessary.

Offline

#9 2012-01-20 23:44:29

srikanthradix
Member
Registered: 2010-10-19
Posts: 35

Re: Installing ksh on my arch machine. [ SOLVED ]

Can you please tell me where is the build directory? I am trying to figure out that one. I downloaded the files into ~/Downloads/ and copied them into
/var/tmp/aurbuild/build directory, but still getting the same error. I think I am putting into the wrong directory. But, not sure, where to put these files.

[srikanth@myhost build]$ ls -ltr
total 980
drwxr-xr-x 2 aurbuild      360   4096 Jan 15 19:12 libaio
drwxrwxr-x 3 aurbuild aurbuild   4096 Jan 18 18:50 rpm
drwxrwxr-x 3 aurbuild aurbuild   4096 Jan 18 19:05 oracle
drwxrwxr-x 3 aurbuild aurbuild   4096 Jan 20 17:20 ksh
-rwxr-xr-x 1 root     root     362107 Jan 20 17:40 INIT.2011-02-08.linux.i386-64.tgz
-rwxr-xr-x 1 root     root     621792 Jan 20 17:40 ksh.2010-03-09.linux.i386-64.gz
[srikanth@myhost build]$ pwd
/var/tmp/aurbuild/build

PKGBUILD

pkgname=ksh
pkgver=2011.02.08
pkgrel=1
pkgdesc="AT&T's Korn shell"
arch=('i686' 'x86_64')
url="http://www.kornshell.com/"
license=('CPL')
conflicts=('pdksh')
source=("INIT.2012-02-08.linux.i386-64.tgz" "ksh.2010-03-09.linux.i386-64.gz")
md5sums=('2870a583f7c170d4f67b1d9858d6b091'
         '5481d41adf067503afbad92d048ff91a')

build() {
  cd "$srcdir"

  bin/package make
}

package() {
  cd "$srcdir"

  # Install manually to avoid nmake dep
  install -Dm755 arch/linux.*/bin/ksh "$pkgdir/bin/ksh"
  install -Dm644 "$srcdir/arch/linux.i386-64/man/man1/sh.1" "$pkgdir/usr/share/man/man1/ksh.1"
  install -Dm644 "$srcdir/lib/package/LICENSES/ast" "$pkgdir/usr/share/licenses/ksh/LICENSE"
}

Last edited by srikanthradix (2012-01-20 23:45:25)


This profile is scheduled for deletion.

Offline

#10 2012-01-20 23:58:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Installing ksh on my arch machine. [ SOLVED ]

Build directory retained at /var/tmp/aurbuild/build/ksh

Offline

#11 2012-01-21 00:02:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Installing ksh on my arch machine. [ SOLVED ]

srikanthradix wrote:

Which INIT package should I download from this site?
http://www2.research.att.com/~gsf/cgi-b … &name=INIT

Mine is a 64-bit machine. Does it mean, I have to download " 2011-02-08  BASE  *     linux.i386-64"? from the site?

If I download any packages, they are tgz files.
I gunzip'ped them and untarred them. What should I do next?

srikanthradix wrote:

Can you please tell me where is the build directory?

This is starting to look like help-vampirism...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2012-01-21 00:05:20

srikanthradix
Member
Registered: 2010-10-19
Posts: 35

Re: Installing ksh on my arch machine. [ SOLVED ]

I have tried putting the files in there as well. It didn't work.

==> Retrieving Sources...
==> ERROR: INIT.2012-02-08.linux.i386-64.tgz was not found in the build directory and is not a URL.
==> ERROR: Makepkg was unable to build ksh.
==> Restart building ksh ? [y/N]
==> ----------------------------
==> 
==> WARNING: Following packages have not been installed:
    ksh
[srikanth@myhost build]$ ls -ltr
total 980
drwxr-xr-x 2 aurbuild aurbuild   4096 Jan 15 19:12 libaio
drwxrwxr-x 3 aurbuild aurbuild   4096 Jan 18 18:50 rpm
drwxrwxr-x 3 aurbuild aurbuild   4096 Jan 18 19:05 oracle
-rwxr-xr-x 1 aurbuild aurbuild 362107 Jan 20 17:40 INIT.2011-02-08.linux.i386-64.tgz
-rwxr-xr-x 1 aurbuild aurbuild 621792 Jan 20 17:40 ksh.2010-03-09.linux.i386-64.gz
drwxrwxr-x 3 aurbuild aurbuild   4096 Jan 20 18:00 ksh
[srikanth@myhost build]$ ls -ltr ksh
total 968
drwxr-xr-x 3 aurbuild aurbuild   4096 Jan 20 17:49 ksh
-rwxr-xr-x 1 aurbuild aurbuild 362107 Jan 20 18:00 INIT.2011-02-08.linux.i386-64.tgz
-rwxr-xr-x 1 aurbuild aurbuild 621792 Jan 20 18:00 ksh.2010-03-09.linux.i386-64.gz
[srikanth@myhost build]$ ls -ltr ksh/ksh/
total 972
-rwxrwxrwx 1 aurbuild aurbuild 362107 Jan 20 17:12 INIT.2011-02-08.linux.i386-64.tgz
-rwxrwxrwx 1 aurbuild aurbuild 621792 Jan 20 17:13 ksh.2010-03-09.linux.i386-64.gz
drwxr-xr-x 2 aurbuild aurbuild   4096 Jan 20 17:22 src
-rw-r--r-- 1 aurbuild aurbuild   1207 Jan 20 17:49 PKGBUILD

This profile is scheduled for deletion.

Offline

#13 2012-01-21 00:13:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Installing ksh on my arch machine. [ SOLVED ]

Read the error message again. Look at the files you have there. Read the PKGBUILD. There is a typo somewhere.

Offline

Board footer

Powered by FluxBB