[squeak-dev] Install on Debian / Ubuntu binary-amd64

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
29 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Install on Debian / Ubuntu binary-amd64

NorbertHartl
On Sat, 2008-04-26 at 11:16 +1000, Edward Stow wrote:

> Debian etch amd64 squeak redux.
>
> 1.  http://ftp.squeak.org/debian does not contain debs for amd64 architecture.
>
> 2.  Norbert Hartl has provided a package for the squeak-vm at
> http://selfish.org/files/deb/squeak-vm-i686_0.1ubuntu1_amd64.deb
>
> this can be installed after downloading
> > dpkg -i squeak-vm-i686_0.1ubuntu1_amd64.deb
>
> You will also need the SqueakV3.9.sources and an image file from
> http://squeak.org/Download/
>
> squeak-vm will look for these files in the same directory used to
> start squeak-vm when started as:
>
> > squeak-vm <your.image>
>
> See http://www.squeakvm.org/unix/doc/squeak.html for command line arguments.
>
>
> 3. Debian lenny includes squeak-vm  on amd64 architecture.
>
> 4. Also note that ubuntu 8.04 also has squeak-vm.  (untried as yet)
>
> 5. This issue has been reported on Mantis at
> http://bugs.squeak.org/view.php?id=7029
> and I have been asked to ask for others that know how to contribute to
> making available suitable package on ftp.squeak.org/debian.
>

Or to say it other words: In order to run squeak you need

- an operating system (I know it's not true but that's not
  the point here :) Sorry SqueakNOS folks)
- a virtual machine
- a squeak image

Each of them has a 32 bit and a 64 bit variant.

With the debian packages you can have

- a 32 bit vm in a 32 bit debian installation (everything
  works)
- a 64 bit vm in a 64 bit debian (you will have trouble
  to use plugins like FFI. That's the reason I don't use
  it)

My package tries to close the gap so that you can have

- a 32 bit vm in a 64 bit installation

All of these confusion refers _only_ to virtual machines
that read 32 bit images. So imagine there were people which
would like to use a 64 bit image :) AFAIK with squeak every
combination of OS, vm and image is possible.


> >From my limited knowledge of deb packages the basics are already
> available : Norbets deb plus the other i386 packages are needed to be
> put together.

can you clarify this? The latter sentence doesn't make any sense
to me. I put this package together for you in only a few minutes so
I'm sure it is not perfect. What might be missing are dependencies.
The only one I added are ia32-libs. Everything else which is
missing need to be put in the dependencies of this archive. But
if there are really i386 packags that are needed (I doubt it) than
the trouble just starts again because you won't be able to install
them on amd64. I don't know if you are the only user of the package
but tell me if you have trouble I'll have look what I can do.

Norbert


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Install on Debian / Ubuntu binary-amd64

Edward Stow
In reply to this post by NorbertHartl
On Sat, Apr 26, 2008 at 6:02 PM, Norbert Hartl <[hidden email]> wrote:

>
> On Sat, 2008-04-26 at 10:53 +1000, Edward Stow wrote:
>  > > I may not have explain it well: the package in Debian is a pure 64 bits
>  > > package.
>  > >
>  > > I can not understand the reasons for your answer or the reason of this
>  > > thread: in an Debian lenny/sid amd64 machine: "apt-get install squeak-vm"
>  > > just works.
>  >
>  > Yes but adding lenny to /etc/apt/sources.list as well as etch is a
>  > risky proposition for the health of my etch system.
>  >
>  No, that is ok. Do
>
>  echo 'APT::Default-Release "etch"' >> /etc/apt/apt.conf
>
>  than it only installs packages from etch. If you do
>
>  apt-get -t lenny install ...
>
OK -- thanks I did not know how to do this ...
--

Edward Stow

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Install on Debian / Ubuntu binary-amd64

Edward Stow
In reply to this post by NorbertHartl
On Sat, Apr 26, 2008 at 6:25 PM, Norbert Hartl <[hidden email]> wrote:
> On Sat, 2008-04-26 at 11:16 +1000, Edward Stow wrote:
>  > Debian etch amd64 squeak redux.

[ ... stuff deleted ...]

>
>  > >From my limited knowledge of deb packages the basics are already
>  > available : Norbets deb plus the other i386 packages are needed to be
>  > put together.
>
>  can you clarify this?

The ftp.squeak.org/debian repository i386 architecture [1] also
contained packages :
squeak
squeak-vm
squeak-image3.9
squeak-image3.9univ
squeak-sources3.9

[1] http://ftp.squeak.org/debian/dists/etch/main/binary-i386/Packages

The squeak package installs a starter   'squeak' shell script  that
conviently copies the images and source to your current directory.

So putting the amd64 package with these other packages would provide a
complete and equivalent amd64 installation.

>  to me. I put this package together for you in only a few minutes so
>  I'm sure it is not perfect. What might be missing are dependencies.
>  The only one I added are ia32-libs. Everything else which is
>  missing need to be put in the dependencies of this archive. But
>  if there are really i386 packags that are needed (I doubt it) than
>  the trouble just starts again because you won't be able to install
>  them on amd64. I don't know if you are the only user of the package
>  but tell me if you have trouble I'll have look what I can do.
>
>  Norbert
>
The package worked for me perfectly.  The dependencies were resolved
correctly in a fresh debian etch installation.


--

Edward Stow

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Install on Debian / Ubuntu binary-amd64

NorbertHartl
> >  can you clarify this?
>
> The ftp.squeak.org/debian repository i386 architecture [1] also
> contained packages :
> squeak
> squeak-vm
> squeak-image3.9
> squeak-image3.9univ
> squeak-sources3.9
>
Ah, ok, the first is a virtual package and all after the vm are
not architecture dependent. So it has be ok.

Norbert


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Install on Debian / Ubuntu binary-amd64

Matej Kosik-2
Norbert Hartl napísal:

>>>  can you clarify this?
>> The ftp.squeak.org/debian repository i386 architecture [1] also
>> contained packages :
>> squeak
>> squeak-vm
>> squeak-image3.9
>> squeak-image3.9univ
>> squeak-sources3.9
>>
> Ah, ok, the first is a virtual package and all after the vm are
> not architecture dependent. So it has be ok.
>
> Norbert
>
>

Hi, I know that amd64 binary packages are missing from that repostory. I do not have root access to
a amd64 machine where I could myself try to build those packages.
(when I was buying new machine, I have chosen 32-bit machine rather than 64-bits to avoid problems)

Here is a complete procedure how to build those binaries from source packages:
-------------------------------------------------
To build squeak binary packages, please try the following procedure:

- add these lines:

        deb     http://ftp.squeak.org/debian/ stable main
        deb-src http://ftp.squeak.org/debian/ stable main

  to your /etc/apt/sources.list
  (you, alas, need root-account but that is needed anyway for
   installing build dependencies so there is no way around it)

- perform

        apt-get update

- go to some convenient working directory and perform

        apt-get source squeak

  This will fetch source package.

- install packages that must be installed before you can build squeak virtual machine:

        # (specific for Debian Etch)
        apt-get install debhelper xlibs-static-dev g++ libxpm-dev \
                        libtool docbook-to-man libxt-dev fakeroot

- build squeak packages

        cd squeak-3.9.8
        dpkg-buildpackage -rfakeroot
        cd ..

- You should see newly created *.deb files

        squeak*.deb
        squeak-vm*.deb
        squeak-plugin*.deb

- So, now if you get the image file:

        apt-get install squeak-image3.9 squeak-plugin-image

  and if you install the packages you have just built:

        dpkg -i *.deb

  Then if you go to some convenient directory where you have (want to have) image files, you
  can start Squeak as follows:

        squeak
-------------------------------------------------
Does this work for you? Is it necessary to switch to special Squeak VM version? Are those
(architecture independent) packages providing Squeak images usable on amd64?

Regards
--
Matej Kosik (http://altair.sk)

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Install on Debian / Ubuntu binary-amd64

NorbertHartl
On Sat, 2008-04-26 at 12:09 +0200, Matej Kosik wrote:

> Norbert Hartl napísal:
> >>>  can you clarify this?
> >> The ftp.squeak.org/debian repository i386 architecture [1] also
> >> contained packages :
> >> squeak
> >> squeak-vm
> >> squeak-image3.9
> >> squeak-image3.9univ
> >> squeak-sources3.9
> >>
> > Ah, ok, the first is a virtual package and all after the vm are
> > not architecture dependent. So it has be ok.
> >
> > Norbert
> >
> >
>
> Hi, I know that amd64 binary packages are missing from that repostory. I do not have root access to
> a amd64 machine where I could myself try to build those packages.
> (when I was buying new machine, I have chosen 32-bit machine rather than 64-bits to avoid problems)
>
> Here is a complete procedure how to build those binaries from source packages:
> -------------------------------------------------
> To build squeak binary packages, please try the following procedure:
>
> - add these lines:
>
> deb     http://ftp.squeak.org/debian/ stable main
> deb-src http://ftp.squeak.org/debian/ stable main
>
>   to your /etc/apt/sources.list
>   (you, alas, need root-account but that is needed anyway for
>    installing build dependencies so there is no way around it)
>
> - perform
>
> apt-get update
>
> - go to some convenient working directory and perform
>
> apt-get source squeak
>
>   This will fetch source package.
>
> - install packages that must be installed before you can build squeak virtual machine:
>
> # (specific for Debian Etch)
> apt-get install debhelper xlibs-static-dev g++ libxpm-dev \
>                         libtool docbook-to-man libxt-dev fakeroot
>
> - build squeak packages
>
> cd squeak-3.9.8
> dpkg-buildpackage -rfakeroot
> cd ..
>
> - You should see newly created *.deb files
>
> squeak*.deb
> squeak-vm*.deb
> squeak-plugin*.deb
>
> - So, now if you get the image file:
>
> apt-get install squeak-image3.9 squeak-plugin-image
>
>   and if you install the packages you have just built:
>
> dpkg -i *.deb
>
>   Then if you go to some convenient directory where you have (want to have) image files, you
>   can start Squeak as follows:
>
> squeak

I don't understand what you are after? A amd64 vm is in the upstream of
ubuntu (and debian I think).

squeak-vm:
  Installed: 1:3.9.8-3ubuntu1
  Candidate: 1:3.9.8-3ubuntu1
  Version table:
 *** 1:3.9.8-3ubuntu1 0
        500 http://de.archive.ubuntu.com hardy/multiverse Packages

So, apt-get install squeak squeak-plugin does install the vm, the plugin
and a 3.8 image for the plugin.

> -------------------------------------------------
> Does this work for you? Is it necessary to switch to special Squeak VM version? Are those
> (architecture independent) packages providing Squeak images usable on amd64?

Why not? The vm reads 32 bit image files and the images are 32 bit.
Do mean anything different from that?

Norbert


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Install on Debian / Ubuntu binary-amd64

NorbertHartl
In reply to this post by Matej Kosik-2
I forget to question. If you don't know about that vm and it is
working who has done it? :) I think at least the package
builder had to patch the vm for 64 bit.

Norbert

On Sat, 2008-04-26 at 12:09 +0200, Matej Kosik wrote:

> Norbert Hartl napísal:
> >>>  can you clarify this?
> >> The ftp.squeak.org/debian repository i386 architecture [1] also
> >> contained packages :
> >> squeak
> >> squeak-vm
> >> squeak-image3.9
> >> squeak-image3.9univ
> >> squeak-sources3.9
> >>
> > Ah, ok, the first is a virtual package and all after the vm are
> > not architecture dependent. So it has be ok.
> >
> > Norbert
> >
> >
>
> Hi, I know that amd64 binary packages are missing from that repostory. I do not have root access to
> a amd64 machine where I could myself try to build those packages.
> (when I was buying new machine, I have chosen 32-bit machine rather than 64-bits to avoid problems)
>
> Here is a complete procedure how to build those binaries from source packages:
> -------------------------------------------------
> To build squeak binary packages, please try the following procedure:
>
> - add these lines:
>
> deb     http://ftp.squeak.org/debian/ stable main
> deb-src http://ftp.squeak.org/debian/ stable main
>
>   to your /etc/apt/sources.list
>   (you, alas, need root-account but that is needed anyway for
>    installing build dependencies so there is no way around it)
>
> - perform
>
> apt-get update
>
> - go to some convenient working directory and perform
>
> apt-get source squeak
>
>   This will fetch source package.
>
> - install packages that must be installed before you can build squeak virtual machine:
>
> # (specific for Debian Etch)
> apt-get install debhelper xlibs-static-dev g++ libxpm-dev \
>                         libtool docbook-to-man libxt-dev fakeroot
>
> - build squeak packages
>
> cd squeak-3.9.8
> dpkg-buildpackage -rfakeroot
> cd ..
>
> - You should see newly created *.deb files
>
> squeak*.deb
> squeak-vm*.deb
> squeak-plugin*.deb
>
> - So, now if you get the image file:
>
> apt-get install squeak-image3.9 squeak-plugin-image
>
>   and if you install the packages you have just built:
>
> dpkg -i *.deb
>
>   Then if you go to some convenient directory where you have (want to have) image files, you
>   can start Squeak as follows:
>
> squeak
> -------------------------------------------------
> Does this work for you? Is it necessary to switch to special Squeak VM version? Are those
> (architecture independent) packages providing Squeak images usable on amd64?
>
> Regards


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Install on Debian / Ubuntu binary-amd64

David T. Lewis
In reply to this post by NorbertHartl
On Sat, Apr 26, 2008 at 10:25:22AM +0200, Norbert Hartl wrote:
> With the debian packages you can have
>
> - a 32 bit vm in a 32 bit debian installation (everything
>   works)
> - a 64 bit vm in a 64 bit debian (you will have trouble
>   to use plugins like FFI. That's the reason I don't use
>   it)
>

A bit off topic, but I have recently gotten FFI working on 64 bit Linux:

  http://lists.squeakfoundation.org/pipermail/vm-dev/2008-April/001900.html

However the changes are rather extensive and are not yet complete for other
platforms, so I would not expect this to be quickly incorporated into the VM
distributions.

There has been some progress on other plugins as well, summarized here:

  http://lists.squeakfoundation.org/pipermail/vm-dev/2007-December/001703.html

FilePlugin, SocketPlugin, BalloonEnginePlugin, BitBltSimulation, OSProcessPlugin,
XDisplayControlPlugin and AioPlugin have been 64 bit clean for a long time.

So progress is slowly being made.

Dave
 

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Re: Install on Debian / Ubuntu binary-amd64

Miguel Enrique Cobá Martínez
In reply to this post by Edward Stow
Edward Stow wrote:

> Debian etch amd64 squeak redux.
>
> 1.  http://ftp.squeak.org/debian does not contain debs for amd64 architecture.
>
> 2.  Norbert Hartl has provided a package for the squeak-vm at
> http://selfish.org/files/deb/squeak-vm-i686_0.1ubuntu1_amd64.deb
>
> this can be installed after downloading
>> dpkg -i squeak-vm-i686_0.1ubuntu1_amd64.deb
>
> You will also need the SqueakV3.9.sources and an image file from
> http://squeak.org/Download/
>
> squeak-vm will look for these files in the same directory used to
> start squeak-vm when started as:
>
>> squeak-vm <your.image>
>
> See http://www.squeakvm.org/unix/doc/squeak.html for command line arguments.
>
>
> 3. Debian lenny includes squeak-vm  on amd64 architecture.

If you are using Damien Cassou images (that does not contain .sources
files) you'll need to download the correct sources files from squeak.org
because the debian packages just install the vm and not any .sources
files. (as in point 2). You'll have to copy the sources files to every
directory where you have an image.

Miguel Cobá

>
> 4. Also note that ubuntu 8.04 also has squeak-vm.  (untried as yet)
>
> 5. This issue has been reported on Mantis at
> http://bugs.squeak.org/view.php?id=7029
> and I have been asked to ask for others that know how to contribute to
> making available suitable package on ftp.squeak.org/debian.
>
>>From my limited knowledge of deb packages the basics are already
> available : Norbets deb plus the other i386 packages are needed to be
> put together.
>
> --
> Thanks
>
>


12