Installing a new package

Asked by Fokko Dijkstra

Really happy with ubuntu - wonderful system, functions smoothly!
And all new software comes it by itself!!

But:
I used to use ZendStudio on a windows system (to create/edit php scripts) - the downloaded file installed automatically in windows.
Now I downloaded the linux version. It came down as: ZendStudio-5_1_0.tar.gz
I opened this and find it back in my home folder as: ZendStudio-5_1_0.bin
Then I tried to to install it from the command line, using: sudo apt-get install ZendStudio-5_1_0.bin
The system tells me it cannot find the file.

I used find and locate to find the file and it is there in my home folder.
using ls -al I also can see it in the file list.

What am I doing wrong?? Do I have to copy the file to another location?
Searched my book for it (Ubuntu Linux Bible!) + went to former questions/answers. So really did my best!
I also installed gPHPEdit and may change to this, but I am used to Studio and would like to make use of this problem to find out how to install new packages in general.

Thanks very much for your answer/effort in advance!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
danielgd (danielgd) said :
#1

"apt-get" can only use ".deb" files, so it could not use ".bin" file.

Bin installation files are usually installed by directly executing them. You may use this from command line:
sh ./ZendStudio-5_1_0.bin

Hope it works

Revision history for this message
Fokko Dijkstra (fokko) said :
#2

Thanks!

I've just tried this.

I get the answer:
error while loading shared libraries libm.so.6: cannot open shared object file. No such file or dirname
+ a few more lines about not finding things.

Do I have to copy the bin file to another location?

Revision history for this message
danielgd (danielgd) said :
#3

I've found this in the forums. It is about other version of ZendStudio, but I think it should work:
http://ubuntuforums.org/showthread.php?p=1682073

Revision history for this message
Fokko Dijkstra (fokko) said :
#4

Seems to work fine indeed.
However: now a new problem:
The system tells me I do not have permission to create the necessary usr/local/Zend directory
I am certain I'm logged in as root (i.e. the first login access created when installing Ubuntu).

Revision history for this message
danielgd (danielgd) said :
#5

We are getting close.
The first created account is not truly root but an user that can execute sudo, the Ubuntu way of dealing with root access.
Type "sudo ./ZendStudio-5_1_0.bin". It will ask for your password and now it will be executed with root rights.

Revision history for this message
Sébastien Corriveau (sebcor-deactivatedaccount) said :
#6

"The first login access created when installing Ubuntu" is NOT root. It is a user that can gain root privileges.

You can run a command with root privileges with the "sudo" command (i.e. "sudo apt-get update", to update your system).

In your situation, I would suggest that you run the following commands:

    chmod +x ZendStudio-5_1_0.bin
    sudo ./ZendStudio-5_1_0.bin

The first command set the executable bit on the file. The second command runs it with root privileges.

Revision history for this message
Fokko Dijkstra (fokko) said :
#7

Learning quite a lot! Thanks.
Now it seems to be installed, but where do I find it?
Not in add/remove.
If I go to the usr/local/Zend dir and try to luanch directly: does not acept my command.

Revision history for this message
danielgd (danielgd) said :
#8

Please paste error message given, if its something about rights, try executing it with sudo.
I've never used ZendStudio, but I guess that usr/local/Zend is now into the accesible path, so you don't need to go to that directory.

Revision history for this message
Sébastien Corriveau (sebcor-deactivatedaccount) said :
#9

A quick search seems to indicate that the command to run from the terminal is: "ZDE" (without the quotes).

Revision history for this message
Fokko Dijkstra (fokko) said :
#10

If I go to
/usr/local/Zend
I see: ZendStudioClient-5.1.0

if I type this I get:
bash: ZendStudioClient-5.1.0

typing ZDE: same result

Revision history for this message
Wrwrwr (wrwrwr) said :
#11

To execute a command in the current directory prepend it with a "./".

./ZendStudioClient-5.1.0 or /usr/local/Zend/ZendStudioClient-5.1.0

Maybe it added something to /usr/bin folder? This would be a standard place to put executables.

Can you help with this problem?

Provide an answer of your own, or ask Fokko Dijkstra for more information if necessary.

To post a message you must log in.