Installing Tango 9.3.4 on Ubuntu LTS 20.04
|
|
---|---|
Profiting from the break from zoom meetings I tried out the latest version (V9.3.4) of the source code release of Tango controls on a virgin Ubuntu LTS 20.04. Here are my notes: 1. Download source tarball from github:
2. Unpack in a sub-directory called tango (so I can test multiple versions in the future):
3. Install packages required to compile tango-controls:
4. Start mariadb :
5. Set password for mariabdb root user to 'mypassword':
6. Configure tango-controls to build and install in /usr/local/tango:
7. Compile tango-controls:
8. Install tango-controls:
9. Add following lines to start script /usr/local/tango/bin/tango:
10. Start tango-controls database server:
11. Start test device server:
11. Test jive:
12. You can now define your device servers and devices, start and test them - ENJOY! Two issues that will need fixing in the next releases are:
Questions and feedback welcomed! Cheers Andy |
|
|
---|---|
|
Hi Andy, I've given this a go and it seems to work - just two minor points: 1. The libzmq-dev package does not seem to be available any more, at least on my freshly-downloaded Ubuntu 20.04.4 .iso. I used libzmq3-dev instead. 2. In step 11 (actually there are two steps numbered 11!) the TANGO_HOST env. var. needs to be set before the TangoTest device server is started. Other than that it works well! Thanks, Jack |
|
|
---|---|
Hi Nico, looks like the package list in your PC is not updated. Try executing "sudo apt-get update" before… |
|
|
---|---|
Hello, I try 5. Set password for mariabdb root user to 'mypassword': I get an error ERROR 1356 (HY000) View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them. Where is mistake.? does anyone know? |
|
|
---|---|
Hi Dariusz, Do you know what version of MariaDB you are using? On recent MariaDB versions, mysql.user is a view rather than a table. Please have a look at this stackoverflow answer: https://stackoverflow.com/a/64841540/4215114 It looks like we'll have to update our documentation for the recent MariaDB version.
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new. |
|
|
---|---|
Hello! Relatively new to TANGO here and have decided to build and install from scratch on a RHEL7 machine. I have followed the instructions in TANGO 9.3.4 README and was about to work through all of the build/install issue. The build configuration command line: $ ../configure –enable-mariadb –with-mysql-ho=localhost –with-mysql-admin=root –with-mysql-passwd= The Configuration resulted in: Configuration (tango): The problem occurs in the Runtime and is database related. I try: -bash-4.2$ DataBaseds 2 -ORBendPoint giop:tcp::10000 And can go no further (TantoTest test fails) I know very little about databases but could do a basic query. It appears that a tango as well as test database were created Your MariaDB connection id is 550 Not sure what to try next. Has anyone else run into this problem? UPDATE: This problem was resolved. For reasons still not clear to me, I needed to run the update_db.sql as suggested by my build output. This solved the problem with my DataBaseds errors. |
|
|
---|---|
Do you have the TANGO_HOST environment variable defined? Maybe it's just a matter of doing before launching the Database server?
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new. |
|
|
---|---|
Reynald Thanks for your response .. The problem was resolved today when I noticed my build output suggested I run "update_db.sql". I did this and now I can start the TANGO database. -bash-4.2$ tango start However, I ran into a problem with the next step: -bash-4.2$ TangoTest test TANGO_HOST is setup properly ( I hope ): -bash-4.2$ echo $TANGO_HOST I tried using a "verbose" mode but its not too helpful: -bash-4.2$ TangoTest test -v100 I am not sure what to try next .. |
|
|
---|---|
Hi, You can run to see all the instances of Test device server defined in your Tango Database.If none is defined, you need to add a new instance, following this documentation: https://tango-controls.readthedocs.io/en/latest/tutorials-and-howtos/how-tos/how-to-start-device-server.html You can also use the tango_admin tool to define some device servers in the Tango database. For instance, to add a new TangoTest instance named my_test, managing 1 device of TangoTest class named my/tg_test/device, you can run:
Hoping this helps, Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new. |