On 9/11/2013 3:44 PM, Thomas Kaiser wrote:
> On 09/11/2013 08:47 AM, Thomas Kaiser wrote:
>> On 09/11/2013 08:28 AM, Sebastian Kuzminsky wrote:
>>> You need libreadline-dev. dpkg-checkbuilddeps will tell you.
>> Thanks, now Tcl and Tk is missing.
>>
>> Looks like I have to figure out all the dependencies...
>>
>> I will post what else I had to install for compiling LinuxCNC.
>
> On Ubuntu 13.04 one need to install tcl8.5-dev, tk8.5-dev instead of 8.4.
>
> libxmu-headers and libxmu-dev is also needed. So, I have to use that
> command to get everything for Ubuntu 13.04:
>

Thomas:

It's good to get reports from the field like yours because they help us 
see where we've assumed too much knowledge on the part of the user. Your 
input will lead directly to improved clarity in the instructions.

Unfortunately, the dependency problem is a tough nut to crack.

There's no magic to dpkg-checkbuilddeps. It merely regurgitates what the 
developers believed to be necessary packages, as recorded in 
./debian/configure and ./debian/control.in [which demonstration of 
shell-script mastery leaves this dilettante in awe, by the way]

The problem with this approach, apart from the fact that 
dpkg-checkbuilddeps itself has to have been installed as part of another 
package (!) is that (1) the ./debian files haven't kept up with the 
evolution of distros and (2) they haven't been changed to reflect the 
way the unified-build-candidates deals with building LinuxCNC (look at 
the difference in options offered by ./debian/configure and by 
./src/configure).

I assume the latter aspect of the problem will be fixed as the 
unified-build-candidate moves forward. However, the former aspect, which 
exists in all the LinuxCNC branches, will always be with us because new 
distro versions keep appearing, not to mention that we are now seriously 
reaching toward distros outside the debian sphere of influence. You know 
you're in for a ride when ./debian/configure reports "configuration may 
be wrong".

A trivial manifestation of this wrongness is dpkg-checkbuilddeps 
reporting that the tcl-8.4-dev and tk8.4-dev packages are needed when 
the installed distro is already running tcl8.5/tk8.5. The consequences 
are amusing.

I personally lean away from shell-script cleverness* and toward creating 
explicit lists for each new distro ala Michael's 
"install-packages-for-build-on-12.04-pristine.sh". Speaking solely for 
myself, this approach improves clarity and ease of maintenance at the 
expense of redundancy.

Good hunting!

Regards,
Kent

*two reasons: firstly, I still bear emotional scars from fighting the 
incompatibilities of the different shells offered by the various 
competing Unix systems I worked with last century; secondly, my brain is 
getting less elastic as I age, making me more suspicious of cleverness :-(

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to