Precise install with Xenomai

More
16 Apr 2014 21:38 #45985 by dcrabtree
I am trying to install LinuxCNC in Precise with Xenomai realtime running this kernel 3.5.7-xenomai-2.6.2.1. I have been trying to follow the directions on "wiki.linuxcnc.org/cgi-bin/wiki.pl?NewRTInstall" but I get stuck pretty early in the install here "sudo apt-get install git-core git-gui dpkg-dev" and end up with these errors.

root@mill-test:~# sudo apt-get install git-core git-gui dpkg-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
git-core is already the newest version.
git-gui is already the newest version.
dpkg-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up gforge-mta-postfix (5.1.1-2) ...
Calculating defaults
Reading defaults from /etc/fusionforge/fusionforge.conf
Creating /etc/fusionforge/fusionforge.conf
Creating /etc/gforge/local.inc
Creating other includes
cp: cannot stat `/etc/postfix/main.cf': No such file or directory
dpkg: error processing gforge-mta-postfix (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gforge-mta-postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)


I have not been able to go farther than this. I need the kernel 3.5.7-xenomai-2.6.2.1 because of the touchscreen I am using.

Any help would be greatly appreciated.

David

Please Log in or Create an account to join the conversation.

More
16 Apr 2014 22:22 #45988 by ArcEye
Replied by ArcEye on topic Precise install with Xenomai

1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up gforge-mta-postfix (5.1.1-2) ...
Calculating defaults
Reading defaults from /etc/fusionforge/fusionforge.conf
Creating /etc/fusionforge/fusionforge.conf
Creating /etc/gforge/local.inc
Creating other includes
cp: cannot stat `/etc/postfix/main.cf': No such file or directory
dpkg: error processing gforge-mta-postfix (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
gforge-mta-postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)


The problem is with something you have previously unsucessfully tried to install 'Fusionforge'?

You didn't need to install the other packages, they were already there, but every time you run apt-get it will try to resolve the errors from 'fusionforge'

Suggest you remove that package as it did not install properly anyway and continue

regards
The following user(s) said Thank You: dcrabtree

Please Log in or Create an account to join the conversation.

More
17 Apr 2014 00:34 #45998 by dcrabtree
Thank you very much I removed the package and was able to proceed and now I am stuck again. Here is where I am at:

mill@mill-test:~/linuxcnc-rtos/src$ ./configure
checking build toplevel... /home/mill/linuxcnc-rtos
checking installation prefix... run in place
checking for grep... /bin/grep
checking for egrep... /bin/egrep
checking for RT dir... configure: error: RT not found. Specify:
--with-realtime=<path>
or use
--enable-simulator
to build without a realtime system.

I have 3.5.7-xenomai-2.6.2.1 running and have done all of the tests how do I point the .configure at the realtime kernel?

Sorry about the newbie questions I am just beginning to learn Linux.

Thanks again

Please Log in or Create an account to join the conversation.

More
17 Apr 2014 13:08 #46019 by ArcEye
Replied by ArcEye on topic Precise install with Xenomai
Hi

You don't say what version you are building.

I would have assumed the master with ubc-3 checked out, in which case it should have picked up the rt system

Make sure that is the case and run ./configure --help
That will give you the options to specify the kernel and where your realtime is located

regards
The following user(s) said Thank You: dcrabtree

Please Log in or Create an account to join the conversation.

More
17 Apr 2014 21:02 #46031 by dcrabtree
Here is what I have done and I am trying to run off Master or as the page says " rtos-integration-preview3-merged-into-master -this should track current master functionality very closely." This is the link to the page I am working off of -- wiki.linuxcnc.org/cgi-bin/wiki.pl?NewRTInstall

Right now I don't know which file to point the ./configure --with-realtime=<path to realtime>

How do I figure out where the <path to realtime> is?
In case you are running on a pristine Ubuntu 10.04LTS or 12.04 install which hasnt seen any use of git, first install the git tools and a helper to pull in dependencies:

 $  sudo apt-get install git-core git-gui dpkg-dev

Now, fetch the development branch from Michael's git repository:

 $ git clone git://git.mah.priv.at/emc2-dev.git linuxcnc-rtos

This puts the project in the directory 'linuxcnc-rtos'. To put the local copy of the project in a different location, just change the last argument of the 'git clone' command. You should only have to do this once.

The commands below generally assume you have now changed to the directory created by the git clone command, so cd into it:

  $ cd linuxcnc-rtos

By default, you will get files from "master", which is not what we want - there are two possible branches to choose from:

 rtos-integration-preview3  - this is based on v2.5_branch
 rtos-integration-preview3-merged-into-master  - this should track current master functionality very closely.

Decide which one you want, and check it out - we assume rtos-integration-preview3 for this example:

 $ git branch --track rtos-integration-preview3 origin/rtos-integration-preview3
 $ git checkout rtos-integration-preview3

Install the build dependencies - this will pull in all packages required to compile linuxcnc:

 $ cd debian
 $ ./configure sim
 $ cd ..
 $ dpkg-checkbuilddeps

This will show a list of packages missing (if any); install those with

 $ sudo apt-get install ....list of missing packages...

Once this is complete, we now configure and build linuxcnc:

 $ cd src
 $ sh autogen.sh
 $ ./configure 
 $  make
 $ sudo make setuid

Please Log in or Create an account to join the conversation.

More
17 Apr 2014 22:23 - 17 Apr 2014 22:37 #46033 by ArcEye
Replied by ArcEye on topic Precise install with Xenomai
Those instructions have not been updated for 5 months and I don't know what the current state of Michaels private repos are.
He is pointing everyone to the machinekit repo now.

Use git clone github.com/machinekit/machinekit.git machinekit to clone the current machinekit fork of linuxcnc, which has ubc-3 enabled in master branch

If you have Xenomai properly installed as per wiki.linuxcnc.org/cgi-bin/wiki.pl?XenomaiKernelPackages

configure will pick up the xenomai kernel and realtime and build for it

You do not need to give any arguements to ./configure, the default is RIP for whatever kernel is detected

Give that a try

regards
Last edit: 17 Apr 2014 22:37 by ArcEye.
The following user(s) said Thank You: dcrabtree

Please Log in or Create an account to join the conversation.

More
17 Apr 2014 22:42 #46037 by dcrabtree
OK here is what I have figured out. I am missing this

mill@mill-test:~/linuxcnc-rtos$ dpkg-checkbuilddeps
dpkg-checkbuilddeps: Unmet build dependencies: rtai-modules-3.5.7-xenomai-2.6.2.1



I tried to apt-get this and I get this

mill@mill-test:~$ sudo apt-get install rtai-modules-3.5.7-xenomai-2.6.2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rtai-modules-3.5.7-xenomai-2.6.2.1
E: Couldn't find any package by regex 'rtai-modules-3.5.7-xenomai-2.6.2.1'


How do I find this to install it?

Please Log in or Create an account to join the conversation.

More
17 Apr 2014 23:10 #46039 by ArcEye
Replied by ArcEye on topic Precise install with Xenomai
Have you followed the instructions here?
wiki.linuxcnc.org/cgi-bin/wiki.pl?XenomaiKernelPackages

That package is not mentioned and is not in the repo.

It also sounds an unlikely name for a xenomai package, very confusing to have rtai at the front

I can't find it, or any references to it in the partition I have with xenomai installed on it.

regards
The following user(s) said Thank You: dcrabtree

Please Log in or Create an account to join the conversation.

More
17 Apr 2014 23:45 - 17 Apr 2014 23:49 #46040 by dcrabtree
I am installing now from

Use git clone github.com/machinekit/machinekit.git machinekit to clone the current machinekit fork of linuxcnc, which has ubc-3 enabled in master branch


And yes I did install Xenomai from the directions on wiki.linuxcnc.org/cgi-bin/wiki.pl?XenomaiKernelPackages

Everything is working so far, I will let you know how it goes.

Thanks

David
Last edit: 17 Apr 2014 23:49 by dcrabtree.

Please Log in or Create an account to join the conversation.

More
18 Apr 2014 01:27 #46044 by dcrabtree
ArcEye thank you very much for all of your help. I am up and running now. I am running it from the rip-enviorment in terminal, is there a way to install it and start it from an Icon on the desktop?

Thaks again I could not have done this without your help.

David

Please Log in or Create an account to join the conversation.

Time to create page: 0.218 seconds
Powered by Kunena Forum