Author Topic: Help needed with program install (SOLVED)  (Read 2767 times)

0 Members and 1 Guest are viewing this topic.

Offline donwatson

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: 5
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Help needed with program install (SOLVED)
« on: November 18, 2012, 03:08:44 pm »
Hi Mark,
I am trying to install linuxcnc.
After running the install, I get this message.

The following packages have unmet dependencies.
 linuxcnc : Depends: python (< 2.7) but 2.7.3-0ubuntu2 is to be installed
            Depends: python2.6-tk but it is not installable
            Depends: python2.6-imaging but it is not installable
            Recommends: linuxcnc-doc-en but it is not going to be installed or
                        linuxcnc-doc-fr but it is not going to be installed or
                        linuxcnc-doc-de but it is not going to be installed or
                        linuxcnc-doc-es but it is not going to be installed or
                        linuxcnc-doc-pl but it is not going to be installed
            Recommends: hostmot2-firmware but it is not installable
E: Unable to correct problems, you have held broken packages.

The recommends about the manuals I can understand, but the the ' Unable to correct problems, you have held broken packages.' has me beat.
Can I fix this program ? (with your help of course)

take care
Don W
« Last Edit: November 21, 2012, 11:33:02 am by donwatson »
Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 5    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Help needed with program install
« Reply #1 on: November 18, 2012, 04:01:23 pm »
Which Linux distro/version/architecture are you running ? (eg. Mint 13 64bit)

Which instructions are you following .. provide a link if possible.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline donwatson

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: 5
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: Help needed with program install
« Reply #2 on: November 18, 2012, 04:25:11 pm »
I am using Peppermint 3.
These are the instructions from the linuxcnc site.

f you prefer to start with the distributed Ubuntu CD, you can install LinuxCNC yourself with these instructions:

    Step 1: Install Ubuntu 10.04 Lucid Lynx (for 32-bit) or 8.04 Hardy Heron (for 32- or 64-bit). Other versions of Ubuntu will not work with LinuxCNC as there are no packages designed to work with them.
    Step 2: Once you have installed Ubuntu , get the install script from here: lucid-install or here: hardy-install, choose "Save to Disk" and click OK.
    Step 3: With the file manager navigate to linuxcnc-install.sh. Right-click on the file, select Properties. Go to the Permissions tab and check the box for Owner: Execute. Close the Properties window.
    Step 4: Now double-click the linuxcnc-install.sh icon, and select "Run in Terminal". A terminal will appear and you will be asked for your password.
    Step 5: When the installation asks if you are sure you want to install the LinuxCNC packages, hit Enter to accept. Now just allow the install to finish.
    Step 6: When it is done, you must reboot (System > Log Out > Restart the Computer) - once you have rebooted you can run LinuxCNC by selecting it on the Applications > CNC menu.
    Step 7: If you aren't ready to set up a machine configuration, try the sim-AXIS configuration; it runs a "simulated machine" that requires no attached hardware.

    Now that the initial installation is done, Ubuntu will prompt you when updates of LinuxCNC or its supporting files are available. When they are, you can update them easily and automatically with the Update Manager. 

Hope this helps

take care
Don W
Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 5    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Help needed with program install
« Reply #3 on: November 18, 2012, 04:55:40 pm »
OK, those instructions won't work for Ubuntu 12.04 (therefore Peppermint 3) .. do this:
Code: [Select]
sudo apt-get install git dpkg-dev linux-headers-generic build-essential
then
Code: [Select]
mkdir ~/git
then:
Code: [Select]
cd ~/git
then
Code: [Select]
git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc
then
Code: [Select]
cd ~/git/linuxcnc/debian
then
Code: [Select]
./configure sim
then
Code: [Select]
cd ~/git/linuxcnc
then post the output from:
Code: [Select]
dpkg-checkbuilddeps
so we can see which dependencies are missing .. them I'll post the rest of the instructions.
« Last Edit: November 18, 2012, 04:57:25 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline donwatson

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: 5
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: Help needed with program install
« Reply #4 on: November 18, 2012, 11:03:48 pm »
Hi Mark,
I carried out your instructions and there was a bit of worry at the ./configure sim,

don@ldwatson ~/git/linuxcnc/debian $ ./configure sim
unknown distribution: Peppermint-3
configuration may be wrong!
successfully configured for 'sim-Peppermint-3'-'sim'..

 but it seems to have passed ok.
Here is the result of the dependency check

don@ldwatson ~/git/linuxcnc/debian $ cd ~/git/linuxcnc
don@ldwatson ~/git/linuxcnc $ dpkg-checkbuilddeps
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 6) libpth-dev dvipng tcl8.4-dev tk8.4-dev bwidget blt libxaw7-dev libncurses-dev libreadline-dev asciidoc (>= 8.5) source-highlight dblatex (>= 0.2.12) groff python-dev python-tk libglu1-mesa-dev libgl1-mesa-dev | libgl1-mesa-swx11-dev libgtk2.0-dev libgnomeprintui2.2-dev gettext autoconf libboost-python-dev texlive-lang-cyrillic
don@ldwatson ~/git/linuxcnc $

Hope this helps

take care
Don W


Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 5    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Help needed with program install
« Reply #5 on: November 18, 2012, 11:56:46 pm »
OK, let's install the dependencies:
Code: [Select]
sudo apt-get install debhelper libpth-dev dvipng tcl8.4-dev tk8.4-dev bwidget blt libxaw7-dev libncurses-dev libreadline-dev asciidoc source-highlight dblatex groff python-dev python-tk libglu1-mesa-dev libgl1-mesa-dev libgtk2.0-dev libgnomeprintui2.2-dev gettext autoconf libboost-python-dev texlive-lang-cyrillic

Now let's check for missing dependencies again .. run:
Code: [Select]
cd ~/git/linuxcnc
then post the output (if any) from:
Code: [Select]
dpkg-checkbuilddeps
« Last Edit: November 19, 2012, 12:30:11 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline donwatson

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: 5
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: Help needed with program install
« Reply #6 on: November 19, 2012, 12:33:41 pm »
Hi Mark,
I have carried out your latest instruction.(I don't think I've seen a larger programme)
The result

don@ldwatson ~ $ cd ~/git/linuxcnc
don@ldwatson ~/git/linuxcnc $ dpkg-checkbuilddeps
don@ldwatson ~/git/linuxcnc $

What now o wise one?

take care
Don W
Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 5    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Help needed with program install
« Reply #7 on: November 19, 2012, 01:08:04 pm »
OK, according to the instructions -

Quote
The tcl8.4 and tk8.4 packages are only needed to get the dependencies check working, they will conflict with the configure. Remove them again.


So uninstall them with:
Code: [Select]
sudo apt-get remove --purge tcl8.4-dev tk8.4-dev

Now to build linuxcnc:
Code: [Select]
cd ~/git/linuxcnc/src
then
Code: [Select]
./autogen.sh
then
Code: [Select]
./configure --enable-simulator
then
Code: [Select]
make

Now if that all went well, the instructions say to add rip-environment to your $PATH .. but I' not 100% sure where it is, so can you run:
Code: [Select]
sudo updatedb
then post the output from:
Code: [Select]
locate rip-environment



BTW, here's the instructions we are following:
http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Build_A_Simulator_Manually
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline donwatson

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: 5
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: Help needed with program install
« Reply #8 on: November 19, 2012, 01:40:36 pm »
Hi Mark,
Carried out instructions down to 'make'. After make it went as follows, I have included some lines before 'make'.

checking for sys/wait.h that is POSIX.1 compatible... yes
checking for semtimedop... yes
checking for sincos function... yes
checking for __sincos... no
checking for tcl... tclConfig.sh not found, trying tcl.h and libs.
        If it doesn't work try running ./configure --with-tclConfig=<path to tclConfig.sh>
checking tcl.h usability... no
checking tcl.h presence... no
checking for tcl.h... no
checking for library containing Tcl_Init... no
configure: error: tcl lib not found
don@ldwatson ~/git/linuxcnc/src $ make
Makefile:55: Makefile.inc: No such file or directory
Makefile:66: *** Makefile.inc must specify RTPREFIX and other variables. Stop.
don@ldwatson ~/git/linuxcnc/src $

Whats next ?

take care
Don W


Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 5    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Help needed with program install
« Reply #9 on: November 19, 2012, 02:53:09 pm »
How odd .. they tell you to remove  tcl8.4-dev  tk8.4-dev .. then the app immediately says it needs them to compile  ::)

I'm going to assume they meant the 8.4 versions would conflict with the 8.5 versions (that may be installed in Ubuntu 12.04 by default, but aren't in Peppermint 3) .. so let's see what happens if we install the 8.5 versions:
Code: [Select]
sudo apt-get install tcl8.5-dev  tk8.5-dev

Now to build linuxcnc:
Code: [Select]
cd ~/git/linuxcnc/src
then
Code: [Select]
./autogen.sh
then
Code: [Select]
./configure --enable-simulator
then
Code: [Select]
make

Now if that all went well, the instructions say to add rip-environment to your $PATH .. but I' not 100% sure where it is, so can you run:
Code: [Select]
sudo updatedb
then post the output from:
Code: [Select]
locate rip-environment
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline donwatson

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: 5
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: Help needed with program install
« Reply #10 on: November 19, 2012, 04:02:59 pm »
Hi Mark,
It seems to have worked ok, and this is what we now have

don@ldwatson ~/git/linuxcnc/src $ locate rip-environment
/home/don/git/linuxcnc/scripts/rip-environment
/home/don/git/linuxcnc/scripts/rip-environment.in
don@ldwatson ~/git/linuxcnc/src $

take care
Don W
Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 5    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Help needed with program install
« Reply #11 on: November 19, 2012, 08:11:29 pm »
OK then .. to add /home/don/git/linuxcnc/scripts/rip-environment to your PATH .. open a terminal and run:
Code: [Select]
gedit /.bashrc
add a new line at the bottom that reads:-

export PATH=$PATH:/home/don/git/linuxcnc/scripts/rip-environment

SAVE the file .. then log off/on (or reboot).

Once you've logged off and on again, you *should* be able to start linuxcnc with:
Code: [Select]
/home/don/git/linuxcnc/scripts/linuxcnc

The reason I highlighted "should* is because there seems a little confusion on the 2 pages of the linuxcnc wik on how exactly it should be startedi:
http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Build_A_Simulator_Manually
and
http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Installing_LinuxCNC



If that doesn't start it .. send the output from:
Code: [Select]
ls -a ~/git/linuxcnc/scripts
and
Code: [Select]
ls -a ~/git/linuxcnc/scripts/rip-environment
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline donwatson

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: 5
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: Help needed with program install
« Reply #12 on: November 19, 2012, 11:45:26 pm »
Hi Mark,
Carried out the latest set of instructions and everything looks good ;D

Thanks for all your help,great karma

take care
Don W
PS I will be back when I figure the best way to use this programme  ;)
Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 5    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Help needed with program install
« Reply #13 on: November 19, 2012, 11:51:36 pm »
Glad to hear it :) .. I've been meaning to take a look at that myself, having a history in CNC.

Let me know if you'd like to add it to your menu instead of having to start it through the terminal.
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline donwatson

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: 5
  • Gender: Male
  • Getting older
    • View Profile
    • Awards
Re: Help needed with program install
« Reply #14 on: November 20, 2012, 12:08:53 am »
Hi Mark,
At first use it seems very good. I wanted it as it should convert the Gcodes to run a gantry router.
I think you can use Inkscape (free) to convert your drawing to Gcode (with the Gcode extensions), then convert the gcode in linuxcnc (free) to control the 3 axes on the gantry router.
I first need to build the gantry router  ;)

take care
Don W
PS I will let you know what happens
Novatech build
Intel Celeron CPU 1.80 Ghz   Memory 4.00GB (3.71GB usable)
Peppermint 5    64 bit     500 GB HD        496 GB Ext 4
4.0GB Swap Partition    4.0GB Extended Partition   1.1Mb Free Space

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal