Modbus Examples?

More
09 May 2013 14:43 #33811 by ArcEye
Replied by ArcEye on topic Modbus Examples?
You must have been outside the sources directory.

install is an option in the Makefile, but you have to be in the directory containing Makefile to run make install

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

More
09 May 2013 19:30 #33829 by Todd Zuercher
Replied by Todd Zuercher on topic Modbus Examples?


If that isn't the sources directory where is it?
Attachments:

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

More
09 May 2013 20:37 #33834 by ArcEye
Replied by ArcEye on topic Modbus Examples?
We may be at cross purposes

I was talking about building libmodbus
(You need to be in /usr/src/libmodbus-3.0.3 and have run ./configure then make then you can run make install to install the libraries in/usr/local/lib)

I thought by step 3 you meant make install and

OK step 2 seemed to go ok,

meant you had got it to make OK at another attempt

I now think you are referring to something else?

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

More
09 May 2013 20:42 #33835 by Todd Zuercher
Replied by Todd Zuercher on topic Modbus Examples?
No, I'm sorry, I think I got the libmodbus to install???

Now I had moved on to trying to get master to install. Which is what I thought step 2 was in the wiki.

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

More
09 May 2013 20:45 - 09 May 2013 20:47 #33836 by ArcEye
Replied by ArcEye on topic Modbus Examples?
Have a look in /usr/local/lib

Just in case you have not managed to build the libmodbus-3.0.3 libs there is a zip attached with the files to be copied to /usr/lib
(then you won't have to add another path to LD_LIBRARY_PATH)

Then run ldconfig from the command line.

regards

(they were built against 10.04)

File Attachment:

File Name: libmodbus-3.0.3.zip
File Size:119 KB
Attachments:
Last edit: 09 May 2013 20:47 by ArcEye.

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

More
09 May 2013 20:51 - 09 May 2013 20:55 #33837 by ArcEye
Replied by ArcEye on topic Modbus Examples?

Now I had moved on to trying to get master to install.


OK

Go to /usr/src/linuxcnc-dev/src

./autogen.sh
./configure (--enable-run-in-place) or (--prefix=/usr) for a system install
make
make setuid (RIP) or make install (system install)
(cd../
. ./scripts/rip-environment) for RIP
linuxcnc

Because the source code is now in the master that should take care of step 3 too
Last edit: 09 May 2013 20:55 by ArcEye.

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

More
09 May 2013 21:49 - 09 May 2013 21:50 #33841 by Todd Zuercher
Replied by Todd Zuercher on topic Modbus Examples?
Now I get an error sayiing that python is required to build LinuxCNC..
Last edit: 09 May 2013 21:50 by Todd Zuercher.

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

More
09 May 2013 21:59 - 09 May 2013 21:59 #33843 by ArcEye
Replied by ArcEye on topic Modbus Examples?
sudo apt-get install cvs build-essential fakeroot debhelper libpth-dev libgtk2.0-dev kernel-wedge tcl8.5-dev tk8.5-dev bwidget python2.5-dev python-tk python-dev libglu1-mesa-dev libgtk2.0-dev libgnomeprintui2.2-dev libncurses5-dev libxaw7-dev gettext libreadline5-dev lyx texlive-extra-utils imagemagick texinfo groff

will install all you need and much more
Last edit: 09 May 2013 21:59 by ArcEye.

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

More
09 May 2013 22:08 #33845 by Todd Zuercher
Replied by Todd Zuercher on topic Modbus Examples?
is there any particular directory in which that particular can-o-worms should be opened?

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

More
09 May 2013 22:20 #33846 by ArcEye
Replied by ArcEye on topic Modbus Examples?
No they are deb packages, will be downloaded into /var/cache/apt/archives

The command can be run from anywhere
The following user(s) said Thank You: Todd Zuercher

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

Time to create page: 0.289 seconds
Powered by Kunena Forum