Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

How to install on Ubuntu 10.04 #13

Closed
laxmanpradhan opened this issue Jun 9, 2010 · 4 comments
Closed

How to install on Ubuntu 10.04 #13

laxmanpradhan opened this issue Jun 9, 2010 · 4 comments

Comments

@laxmanpradhan
Copy link

Just a guide for others (newbies). Also if I'm doing something wrong please let me know. This is a guide for how to install SPL on Ubuntu or other Debian based systems.

  1. Make sure you have Automake, alien, splat and rpm installed:
    sudo apt-get install automake rpm alien splat
  2. Download and extract the source code to /usr/src (could be anywhere)
  3. Go to folder in terminal and run
    ./configure
  4. If you see any errors, it will most likely be due to a package you are missing. Install it with the same command as above.
  5. Make the rpm
    make rpm
  6. You should see 3 *x86_64.rpm files. Install them all one by one using alien (replace filename with the name of the file)
    sudo alien -i filename

Note: When I try to convert the .rpm into a .deb I get errors, so I just went with this.

  1. Run tests using splat, first you have to enable it
    sudo modprobe splat
    sudo splat -a

Every test must pass.

Hopes this helps someone.

@eep
Copy link

eep commented Jul 25, 2010

Hi there, this is good advice but are you sure you need to install splat? Apt-getting splat from the ubuntu repositories will install an RF analyser software that depends on X Windows. Most people who run a server and would like to try ZFS on Linux probably don't want to install X. Also you probably don't need to explicitly install automake. So the only apt command you need to run in step 1. on Ubuntu Server 10.04 is
apt-get install alien gawk

@behlendorf
Copy link
Contributor

This was sort of fixed by commit 287b2fb. As a short term work around I've automated the process of using alien to convert rpm packages to deb and tgz packages. The long term fix remains to add native packaging but I just don't have time for that. This I had time for:

$ lsb_release -d
Description:    Ubuntu 10.04.1 LTS

$ ./configure
$ make deb

$ ls *.deb
spl_0.5.0-2_i386.deb
spl-modules_0.5.0-2_i386.deb
spl-modules-devel_0.5.0-2_i386.deb

$ sudo dpkg -i *.deb
Selecting previously deselected package spl.
(Reading database ... 225166 files and directories currently installed.)
Unpacking spl (from spl_0.5.0-2_i386.deb) ...
Selecting previously deselected package spl-modules.
Unpacking spl-modules (from spl-modules_0.5.0-2_i386.deb) ...
Selecting previously deselected package spl-modules-devel.
Unpacking spl-modules-devel (from spl-modules-devel_0.5.0-2_i386.deb) ...
Setting up spl (0.5.0-2) ...
Setting up spl-modules (0.5.0-2) ...
Setting up spl-modules-devel (0.5.0-2) ...

$ sudo modprobe splat
$ sudo splat -a
------------------------------ Running SPLAT Tests ------------------------------
                kmem:kmem_alloc           Pass
                kmem:kmem_zalloc          Pass
                kmem:vmem_alloc           Pass
                ...

@eep
Copy link

eep commented Jul 30, 2010

I'll give it a whirl. ... I've come across a hard lock up when running the zconfig.sh tests after the zfs module is built on my ubuntu 10.04.1 server ... I'll try to post some more info for you in the zfs repo github.

@behlendorf
Copy link
Contributor

Thanks, expect some fixes for the zconfig.sh lockups tomorrow.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants