Installing a tar.bz2 containing following files:

Hello

i googled how to install tar.bz2 files. usually its:

tar -xf VESTA-i686.tar.bz2

then

./configure, make, make install   

usually should follow

after tar -xf, ./configure does not work.

the unpacked folder contains following data:


asfdc           elements.ini     LICENSE     RIETAN.sh  STRUCTURE_TIDY     template.ins   wyckoff.dat
bvparm2013.cif  img              madel       spgra.dat  STRUCTURE_TIDY.sh  VESTA
elements        Library_License  PowderPlot  spgro.dat  style.ini          VESTA_def.ini

VESTA and madel are executable files.

how to get that to install or run?

with regards

tar is used to archive several files into one.
A compression method is then often applied to that file.

And that is what you have., a compressed archive of several files. Those several files can be anything. Though I admit that (specialy in the Linux world) they often contain the files that are needed (and sufficient) to build a product on a system. And then a certain amount of standardisation is often used to gather information about the system (the configure part), to build the product (the make part) and to install the product (the make install part, that should be run as root). Also, it is often the case that a file READ.ME (or similar named) file is added to such a “tarball” to explain how to build and install.

This seems not to be the case in the archive you have. We can only guess what should be done with this (you seem to think that it contains some software product). Questions arise like:
. where did you find this?
. is there any story there which told you what to expect?
. any docs there on how to install/run it?

Its that program from this site
http://jp-minerals.org/vesta/en/

Hi
Just run the executable from the directory;


./VESTA

You can create a script or shortcut in your ~/bin (~/ = /home/username) directory to the executable.

Hi,
According to the manual:

Extract the whole contents of the archive file to a directory. Then, execute VESTA in that

directory by double-clicking the \VESTA" file on a file manager or by typing the following

command in a command line:

See manual
http://scent.gist.ac.kr/downloads/tutorial/2010/5th/vesta_manual.pdf

yeah tried

./VESTA

before. By doing that, following message appears:

./VESTA: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory

i thought then ./VESTA is the wrong call. Double clicking does not work either.

try installing the OpenGL libraries (GLUT and GLUI are needed for VESTA to run)

https://software.opensuse.org/package/glui
https://software.opensuse.org/package/libGLU1

needs Mesa
https://software.opensuse.org/package/Mesa
https://software.opensuse.org/package/Mesa-libGLU1

GLUT sounds almost like gluten.

Anyway, i installed some glut packages. There were no GLUI packages. I installed some other glu packeges, now it works.
Yet there is another small ishue: when starting the program, the following message appears:

(VESTA:18487): Gtk-WARNING **: Unable to locate theme engine in module_path: "oxygen-gtk",

why not read the user manual
http://jp-minerals.org/vesta/en/doc.html

mind you this is OLD , VERY OLD

it was built for opensuse 11!!!
it has been UNSUPPORTED for years .
http://jp-minerals.org/vesta/en/download.html
— the tarball ----

Distributions where VESTA is known to work.
  • Fedora 10, 11, 12, 13, 14
  • openSUSE 11.2, 11.3
  • Redhat Enterprise Linux 5, 6
  • Ubuntu 9.10, 10.10

http://www.geocities.jp/kmo_mma/crystal/download/VESTA-i686.tar.bz2

so expect " issues"
like having too new versions of libs

note that “geocities” name in the address

geocities no longer exists

appartently i installed some oxygen-gtk packages, and there is no warning.

i think it works so far.

aha one more thing:

how to add the executable into the system, so when i call in terminal VESTA, then it will open the program?

it sounds like a missing gnome theme, do you have gnome installed?
it’s no big deal there are 2 packages that provide that and from what I’ve read they should be compatible just zypper them

zypper in oxygen-gtk3

strangely enough I could find binary packages for oxygen-gtk3 (or oxygen-gtk2) only source.
on the other hand the binary uses old gtk2 library it might be better to install the gtk2 widget

zypper in oxygen-gtk2

make a simple bash script with the path to the VESTA bin file and put it in your $HOME/bin dir

/home/<you>/Vesta/VESTA

you can name it vesta.sh or vesta

i never did a bash script, do not really know what it is. is there any good tutorial?
probably: http://www.tldp.org/LDP/Bash-Beginners-Guide/html/

or is there something more appealing?

Hi
Create a wrapper script and dump it in you ~/bin directory called vesta.wrapper;


#!/bin/sh
cd ~/VESTA-x86_64 && exec ./VESTA $*

Don’t forget to make it executable;


chmod 0700 ~/bin/vesta.wrapper

For a launcher (aka shortcut and menu item) create a vesta.desktop file and save this to ~/.local/share/applications;


[Desktop Entry]
X-SuSE-translate=true
Name=Vesta
Comment=3D visualization program for structural models
Version=1.0
Icon=/home/username/VESTA-x86_64/img/logo.png
Exec=/home/username/bin/vesta.wrapper
Type=Application
Terminal=false
Categories=Education;Science;

You need to modify the script and desktop file to match whatever location your have the extracted tarball.

thank you this works so far.
but why do we need to create a .wrapper? couldnt we reference from the .desktop directly?

how do i add the programcall into the terminal. For example if i enter “VESTA” in terminal, it would start then?

only when:
a) it is in a directory mentioned in your PATH environment varianle (that is why you are advised to put it in the bin directory in your home directory ~/bin);
b) it is made executable for the user that wants to execute it, thus when you are the owner and you did the chmod as mentioned above, that is OK.

Because in your case, the executable file VESTA is somewhere else, people here advised you the “wrapper”. Alternative solution (there are always many solutions in Unix/Linux) would be to add the directory where VESTA resides to your PATH. To achieve this you could add to your ~/.bashrc:

PATH=$PATH:/home/carborane/VESTA-x86_64

(replace carborane with your real username).

I would prefer the wrapper, were it only for the fact that calling a program with uppercase characters is very un-Unix/Linux like >:)

On 2014-12-21 12:06, hcvv wrote:

> Because in your case, the executable file VESTA is somewhere else,
> people here advised you the “wrapper”. Alternative solution (there are
> always many solutions in Unix/Linux) would be to add the directory where
> VESTA resides to your PATH.

Or add an alias, on file ~/.alias:


alias vesta="/home/carborane/VESTA-x86_64/VESTA"

An alias file can make adaptations to several programs in a single file.
Each script in ~/bin uses a minimum of 8 KB, and that’s a waste

(kidding) :stuck_out_tongue_winking_eye:

(I can reverse the argument, though, against use of aliases in terms of
resources)


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)