Welcome to iraf.net Saturday, April 20 2024 @ 03:32 PM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 Building x11iraf on 64bit Ubuntu
   
jrl
 02/09/2012 02:09PM (Read 11723 times)  
+----
Newbie

Status: offline


Registered: 02/27/2008
Posts: 3
Hi,If I try to use one of the prebuilt 32bit binaries for x11iraf on my 64bit Ubuntu machine, I get the following:/soft/local/bin/xgterm: Command not foundSo I wanted to try and build the binaries myself. Unfortunately the build fails pretty spectacularly as it is unable to find .h files and it looks like there are loads of errors where data structures are missing certain members, etc. So I'm guessing this has something to do with missing dependencies. What's the best way forward here?cheers, Jim

 
Profile Email
 Quote
fitz
 02/09/2012 02:09PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
A 'command not found' may mean that either the binary wasn't installed (does /soft/local/bion/xgterm exist?), it isn't in your path (but you gave an explicit path), or the binary cannot be run for some reason (either isn't executable or has missing shared lib dependencies). If the file exists and has correct permissions, run ldd /soft/local/bin/xgtermto check for missing dependencies. These would likely be 32-bit versions of libs you already have but need to be installed separately.As for the build problems, are you trying to build IRAF or X11IRAF? XGterm isn't part of the IRAF source tree so there's no point in building IRAF, and the X11IRAF sources are know to not be 64-bit clean so there's no point in building those either? That's not to say you're not missing something on your machine for a complete dev environment, however you should just be able to use the binaries from ftp://iraf.noao.edu/iraf/x11iraf/x11iraf-v2.0BETA-bin.linux.tar.gzThere are no plans to make a 64-bit version of the X11IRAF tools (it would literally be easier to write something new).Cheers,
-Mike

 
Profile Email
 Quote
jrl
 02/09/2012 02:09PM  
+----
Newbie

Status: offline


Registered: 02/27/2008
Posts: 3
Hi,
The xgterm binary definitely exists and is executable. If I do ldd on a 32 bit machine (debian) and a 64 bit machine (ubuntu) I get:On a 32 bit machine:
jrl@apm11(/soft/local/bin){2}> ldd xgterm
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0xb7ef9000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0xb7ea7000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0xb7e9e000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0xb7e87000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb7e79000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7db2000)
libncurses.so.5 => /lib/libncurses.so.5 (0xb7d73000)
libm.so.6 => /lib/tls/libm.so.6 (0xb7d50000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7c1b000)
libdl.so.2 => /lib/tls/libdl.so.2 (0xb7c18000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7f19000)On a 64 bit machine:jrl@apm34(/soft/local/bin){4}> ldd xgterm
not a dynamic executableI hadn't realised that x11iraf wasn't 64 bit clean, so that's probably why I can't rebuild it. We had a situation not long ago where we had 2 machines with the same operating system (Fedora 14). One could execute a 32bit binary and one could not.(You got the same errors as above -- command not found) Is there some sort of 'compatibility' suite that perhaps one of these machines might not have had? If so, then perhaps this is what's happening here.

 
Profile Email
 Quote
fitz
 02/09/2012 02:09PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The 'not a dynamic executable' probably means you haven't got a 32-bit dynamic library loader installed. On Ubuntu this should be something like /lib/ld-linux.so.2 that is supplied with the 'libc6-i386' package.A truly static version of XGterm can be had from https://iraf.net/ftp/pub/xgterm.LNUX.STATIC
https://iraf.net/ftp/pub/ximtool.LNUX.STATIC

 
Profile Email
 Quote
jrl
 02/09/2012 02:09PM  
+----
Newbie

Status: offline


Registered: 02/27/2008
Posts: 3
Thanks very much for the heads up on the dynamic loader issue. It turns out there is a while suite of 32bit dynamic libraries (ia32-libs) for ubuntu. Just did a quick install and all works properly now! cheers, Jim

 
Profile Email
 Quote
jjpm
 12/19/2013 08:45AM  
+----
Newbie

Status: offline


Registered: 12/18/2013
Posts: 2
The ia32-lib no longer exist in ubuntu 13.10
How to install xgterm ? Jean

 
Profile Email
 Quote
jjpm
 12/19/2013 11:33AM  
+----
Newbie

Status: offline


Registered: 12/18/2013
Posts: 2
I installed the xgterm.static, but is there a better solution ?

 
Profile Email
 Quote
admin
 12/20/2013 03:27AM  
AAAAA
Admin

Status: offline


Registered: 09/27/2005
Posts: 18

Ubuntu has deprecated the ia32-libs in favor of some "multiarch" scheme in which 32-bit binaries can be built as a separate architecture. I haven't done it myself (i.e. setup such a system), but presumably the X11IRAF tools could be built in this way, however you'd probably have to make several minor code changes to satisfy the newer GCC and you'd simply end up with a different binary that does what the static binary you have now does. SO, if 'better' is defined as simpler, I think its just easiest to use the static binaries when needed.

For various reasons, there are no plans to provide 64-bit clean versions of the X11IRAF tools. The standard unix XTerm can be used for graphics and DS9 as an image display as an alternative.

 
Profile Email
 Quote
Vital
 01/16/2014 06:10PM  
+----
Newbie

Status: offline


Registered: 01/16/2014
Posts: 4
I would like to make use of this post to ask a related question:

I uploaded a video describing the installation of IRAF a year ago (https://www.youtube.com/watch?v=BtTr_F08y7o) but this installation is obsolete now with the 2.16.1 version.

I am trying the new procedure (in ubuntu gnome 13.10 64 bits):

PHP Formatted Code
% mkdir iraf.v2161
% cd iraf.v2161
% wget ftp://iraf.noao.edu/iraf/v216/iraf.lnux.x86_64.tar.gz
% tar zxf iraf.lnux.x86_64.tar.gz
% ./install                         # accept prompt defaults
% iraf                              # to start IRAF in an XGterm


There were some problems launching of xgterm since there were some missing libraries. I managed to add them with these commands:

PHP Formatted Code
sudo apt-get install libXmu6:i386
sudo apt-get install libcurses5:i386


However, as some people described in this post you can install the the statically linked libraries (There is also this forum post which I believe was replied by Mike: http://askubuntu.com/questions/373196/install-iraf-on-ubuntu-13-10-64-bit)

My questions are:

1) How do you install these .STATIC files?

2) In order to run xgterm with this libraries do you still need to follow the traditional installation of x11iraf (below is what i mean)?

PHP Formatted Code
wget http://iraf.noao.edu/x11iraf/x11iraf-v2.0BETA-bin.linux.tar.gz
mv x11iraf-v2.0BETA-bin.linux.tar.gz /iraf/x11iraf/
cd /iraf/x11iraf/
./install


 
Profile Email
 Quote
fitz
 01/16/2014 06:40PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
There were some problems launching of xgterm since there were some missing libraries. I managed to add them with these commands:

sudo apt-get install libXmu6:i386
sudo apt-get install libcurses5:i386


The xgterm/ximtool binaries in the v2.16.1 distribution are the statically linked versions and so shouldn't require the 32-bit libraries (although 32-bit only external packages like STSDAS might). The install script should create command links to these when run, but I just noticed that this only happens for the 'linux' and 'macintel' architectures (I've added symlinks for a future release so the commands are created on all architectures). On a 'linux64' machine you can just manually copy the $iraf/vendor/x11iraf/bin.linux binaries to the 'local bin directory' or $HOME/.iraf/bin as a workaround.

If you get the .STATIC files from the FTP archive then you would just download in binary mode, rename to remove the ".STATIC" extension and then move the binary manually. What you get from the traditional x11iraf distribution install script is an installation of the libraries and app-defaults files as well as the binaries, however the install script probably doesn't make proper use of the /usr/share directory as is done on recent linux systems. Note that the binaries you get from the iraf install are all most users normally require, the libraries from the traditional x11iraf install aren't generally needed for runtime use.

 
Profile Email
 Quote
amagaz
 01/22/2014 06:16PM  
+----
Newbie

Status: offline


Registered: 01/22/2014
Posts: 4

The xgterm/ximtool binaries in the v2.16.1 distribution are the statically linked versions and so shouldn't require the 32-bit libraries (although 32-bit only external packages like STSDAS might). The install script should create command links to these when run, but I just noticed that this only happens for the 'linux' and 'macintel' architectures (I've added symlinks for a future release so the commands are created on all architectures). On a 'linux64' machine you can just manually copy the $iraf/vendor/x11iraf/bin.linux binaries to the 'local bin directory' or $HOME/.iraf/bin as a workaround.


I just installed xgterm from the v2.16.1 distribution in Ubuntu 13.10 and it works. However, it doesn't see the app-defaults. I located the XGterm file in /etc/X11/app-defaults and later in /usr/lib/app-defaults, but it seems xgterm doesn't find it.

Am I missing something?

thanks
Antonio

 
Profile Email
 Quote
fitz
 01/22/2014 06:33PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040

The simplest thing is to just copy the app-defaults file into your $HOME/.Xdefaults, otherwise try putting the 'XGterm' file in /usr/lib/X11/app-defaults, /usr/X11R6/lib/X11/app-defaults or /usr/local/lib/app-defaults. I think these paths are an artifact of the libraries used to build the binary rather than anything explicitly set in the code.

 
Profile Email
 Quote
amagaz
 01/22/2014 07:31PM  
+----
Newbie

Status: offline


Registered: 01/22/2014
Posts: 4
Quote by: fitz


The simplest thing is to just copy the app-defaults file into your $HOME/.Xdefaults, otherwise try putting the 'XGterm' file in /usr/lib/X11/app-defaults, /usr/X11R6/lib/X11/app-defaults or /usr/local/lib/app-defaults. I think these paths are an artifact of the libraries used to build the binary rather than anything explicitly set in the code.



Thanks!

Actually, the only option that worked is putting the XGterm in /usr/X11R6/lib/X11/app-defaults (which I had to create). Any other location does not work.

Solved, anyway :-)

 
Profile Email
 Quote
HenryL
 05/25/2016 12:25PM  
+----
Newbie

Status: offline


Registered: 05/13/2008
Posts: 3
It's May25, 2016. I downloaded iraf2.16 64-bit onto an Ubuntu 16.04 LTS system.

I made the symbolic link:

ln -s /iraf/iraf/vendor/x11iraf/bin.linux/xgterm /usr/local/bin/xgterm

I suspect that this is the 32 bit version of xgterm?

Anyway, it seems to work just fine without us having to do anything as far as installing 32 bit libraries. Works right out of the box.

Had to remember to install 'tcsh' though before cl would function.

Hope this helps.

 
Profile Email
 Quote
   
Content generated in: 0.58 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login