Debian Jessie Install
- islander261
- Offline
- Platinum Member
- Posts: 757
- Thank you received: 216
The command text is here but I am running it one command at a time from a terminal:
(and heres a script)
cd ~
mkdir rtlinux
cd rtlinux
wget ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-3.18.9.tar.xz
wget
www.kernel.org/pub/linux/kernel/projects...-3.18.9-rt5.patch.gz
tar -xpf linux-3.18.9.tar.xz
gunzip patch-3.18.9-rt5.patch.gz
cp patch-3.18.9-rt5.patch linux-3.18.9
cd linux-3.18.9
cat patch-3.18.9-rt5.patch | patch -p1
make xconfig
make
sudo make modules_install
sudo make install
I have a working .config here if you dont want to mess with all the kernel
options settable with xconfig
freeby.mesanet.com/rtconfig
(move to linux source directory and rename to .config)
Note that this enables about every hardware driver you can imagine so takes a
while to compile
I have been able to successfully complete the green highlighted commands.
I am assuming that by doing the yellow highlighted commands I skip the make xconfig line above.
So I try and make and this is what happens:
jd@plastest:~/rtlinux/linux-4.1.12$ make
bash: make: command not found
jd@plastest:~/rtlinux/linux-4.1.12$
I thought that the compiler with make was a standard part of the Debian 8 install.? I have looked for it and can't find it any where. I haven't found it as a separate package on the website either (very possibly bad search technique) . What do I need to do to move forward here? Thank you.
John
Please Log in or Create an account to join the conversation.
- islander261
- Offline
- Platinum Member
- Posts: 757
- Thank you received: 216
jd@plastest:~/linuxcnc-dev/src$ uname -a
Linux plastest 4.1.12-rt13 #1 SMP PREEMPT RT Sun Nov 15 17:02:50 PST 2015 i686 GNU/Linux
Or maybe I should say it loads and runs.
Now building LinuxCNC to go with it isn't going so well. Following the previous instructions I get to this point:
cd ~
sudo apt-get install git-core gitk git-gui
sudo apt-get build-dep linuxcnc
sudo apt-get install libudev-dev
git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev
cd linuxcnc-dev
git checkout 2.7
git pull
cd src
./autogen.sh
./configure --with-realtime=uspace
make
sudo make setuid
cd ..
. scripts/rip-environment
And this is what happens:
jd@plastest:~$ sudo apt-get build-dep linuxcnc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for linuxcnc
so keep on going and things don't work here:
jd@plastest:~/linuxcnc-dev/src$ ./autogen.sh
./autogen.sh: 6: ./autogen.sh: autoconf: not found
Any help? Thank you.
John
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 24
- Thank you received: 758
jd@plastest:~$ sudo apt-get build-dep linuxcnc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for linuxcnc
That was not ever going to work, you didn't install linuxcnc from a package, so apt has nothing to find dependencies in.
You don't have a development environment, build-essentials just gives the bare minimum.
Each time you get an error like that, search 'Debian Jessie provides autoconf' or similar and you will get hits telling which packages contain the thing you need. Install it and run again until all builds.
I could spoon feed you a list of packages, but you would not learn anything
regards
Please Log in or Create an account to join the conversation.
- islander261
- Offline
- Platinum Member
- Posts: 757
- Thank you received: 216
Now when I build LinuxCNC from this source is it a custom build to work with the real time kernel? I downloaded the the newest image and up dated it and all appears to work in simulation mode. This is what I did:
linuxcnc.org/docs/2.7/html/getting-start...etting-linuxcnc.html
In section 7.1:
5. Add the LinuxCNC Archive Signing Key to your apt keyring by running
sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-key 8f374fef
Add a new apt source that looks like this:
deb linuxcnc.org/ jessie base 2.7-uspace
Update the package list from linuxcnc.org
sudo apt-get update
Install uspace
sudo apt-get install linuxcnc-uspace
All this appeared to work with no errors that I noticed.
John
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 24
- Thank you received: 758
Building from sources is normally only necessary, when you want to modify something that needs to be built within the source tree.
If the package works with your rt kernel, that is you done
regards
Please Log in or Create an account to join the conversation.
- islander261
- Offline
- Platinum Member
- Posts: 757
- Thank you received: 216
I think I want to use the Mesa 7i76E card or the 5i25/7i76 combination, software step generation isn't going to happen with the hardware I have. So I think I am fine running LinuxCNC in uspace using the Preempt RT real time patch to the linux kernel.
John
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23178
- Thank you received: 4864
I think I want to use the Mesa 7i76E card or the 5i25/7i76 combination, software step generation isn't going to happen with the hardware I have. So I think I am fine running LinuxCNC in uspace using the Preempt RT
I think that you _have_ to use uspace to run the 7i76E.
Please Log in or Create an account to join the conversation.
- islander261
- Offline
- Platinum Member
- Posts: 757
- Thank you received: 216
I think I have a problem. When I try to run latency-plot this is what happens:
jd@plastest:~$ latency-plot
Waiting for component 'threads' to become ready.Waited 3 seconds for master. giving up.
.Note: Using POSIX realtime
Unexpected realtime delay on task 0
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Memory used is 1.2%, Exiting
jd@plastest:~$
On the main GUI screen the plot window opens and then the error message box opens above it. If I click on it the plot window closes. If I just move the message box off to the side the main plot window appears to be working. When I try the other two latency applications, latency-test and latency-histogram, they appear to work.
John
Please Log in or Create an account to join the conversation.
- auto-mation-assist
- Offline
- Platinum Member
- Posts: 425
- Thank you received: 81
The following packages have unmet dependencies:
linuxcnc-uspace : Depends: libboost-python1.49.0 (>= 1.49.0-1) but it is not installable
Depends: libgnomeprint2.2-0 (>= 2.17.0) but it is not installable
Depends: libgnomeprintui2.2-0 (>= 2.17.0) but it is not installable
Depends: libudev0 (>= 0.140) but it is not installable
I have tried this on more than one machine with the same result. I do not have a repository address that can provide these depends. The system lists no broken packages. Does anyone have a work around on this. Is my building sequence out of order?
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
- Posts: 24
- Thank you received: 758
After that I ran a apt-get build-dep linuxcnc-uspace
Why, there is no package for 2.8 and you don't have one installed anyway.
When it was done I ran apt-get install linuxcnc-uspace
Why, that would try to install 2.7 at best but I think you have managed to fetch the Wheezy package
The Jessie libboost-python-dev version is 1.55.02
Have you set your /etc/apt/sources.list correctly?
This is the control file for the www.linuxcnc.org/dists/jessie/2.7-uspace...pace_2.7.2_amd64.deb
Package: linuxcnc-uspace
Source: linuxcnc
Version: 1:2.7.2
Architecture: amd64
Maintainer: Sebastian Kuzminsky <seb@highlab.com>
Installed-Size: 27694
Depends: libatk1.0-0 (>= 1.12.4), libboost-python1.55.0, libc6 (>= 2.15), libcairo2 (>= 1.2.4), libfontconfig1 (>= 2.11), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libgl1-mesa-glx | libgl1, libglib2.0-0 (>= 2.16.0), libglu1-mesa | libglu1, libgtk2.0-0 (>= 2.8.0), libice6 (>= 1:1.0.0), libmodbus5 (>= 3.0.2), libncurses5 (>= 5.0), libpango-1.0-0 (>= 1.14.0), libpangocairo-1.0-0 (>= 1.14.0), libpangoft2-1.0-0 (>= 1.14.0), libpython2.7 (>= 2.7), libreadline5 (>= 5.2), libsm6, libstdc++6 (>= 4.6), libtinfo5, libtk8.6 (>= 8.6.0), libudev1 (>= 183), libusb-1.0-0 (>= 2:1.0.8), libx11-6, libxaw7, libxext6, libxft2 (>> 2.1.1), libxinerama1, libxmu6, libxss1, libxt6, zlib1g (>= 1:1.1.4), libudev-dev, iptables, tcl8.6, tk8.6, bwidget (>= 1.7), libtk-img (>= 1.13), python (>= 2.7), python (<< 2.8), python:any (>= 2.7.5-5~), python2.7-tk, python2.7-gnome2 | python-gnome2, python2.7-glade2 | python-glade2, python2.7-numpy | python-numpy, python2.7-imaging | python-imaging, python2.7-imaging-tk | python-imaging-tk, python-gtksourceview2, python-vte, python-gst0.10, python-xlib, python-gtkglext1, python-configobj, tclreadline, procps, psmisc, module-init-tools | kmod, tclx, mesa-utils, blt
Recommends: linuxcnc-doc-en | linuxcnc-doc, hostmot2-firmware-all, linux-image-rt-amd64
Conflicts: linuxcnc, linuxcnc-sim
Section: misc
Priority: extra
Description: PC based motion controller for real-time Linux
LinuxCNC is the next-generation Enhanced Machine Controller which
provides motion control for CNC machine tools and robotic
applications (milling, cutting, routing, etc.).
Note the package version numbers
I would suggest that you just purge all your wrongly installed packages, realign your apt repo settings and install the correct 2.7 package for Jessie
There is no advantage to trying to run 2.8, especially as you have to build it from git sources.
regards
Please Log in or Create an account to join the conversation.