LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   .bin file install failed on Ubuntu 10.04LTS but worked on Ubuntu 11.10 (https://www.linuxquestions.org/questions/linux-software-2/bin-file-install-failed-on-ubuntu-10-04lts-but-worked-on-ubuntu-11-10-a-923144/)

wh33t 01-10-2012 06:58 PM

.bin file install failed on Ubuntu 10.04LTS but worked on Ubuntu 11.10
 
Ok so this worked on Ubuntu 11.10, but now that I've downgraded to 10.04LTS I can't seem to get it to work. I also thought perhaps I was missing Java but I used the Software center to install it and I still get same error.

Please advise :D

Code:

wh33t@wh33tbox:~$ sudo chmod ugo+x ZendStudio-5_2_0.bin
wh33t@wh33tbox:~$ ./ZendStudio-5_2_0.bin
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
nawk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
hostname: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory

Launching installer...

grep: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
/tmp/install.dir.5866/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory


alan_ri 01-11-2012 12:00 PM

This happens sometimes, it just means that some libraries are not where the installer is looking for them or are not there at all. That's why is important to read the README file and/or CONFIG or INSTALL file, to see what are the dependencies and alike.

Good read is here; http://tldp.org/HOWTO/Program-Librar...libraries.html

wh33t 01-11-2012 04:54 PM

Quote:

Originally Posted by alan_ri (Post 4572032)
This happens sometimes, it just means that some libraries are not where the installer is looking for them or are not there at all. That's why is important to read the README file and/or CONFIG or INSTALL file, to see what are the dependencies and alike.

Good read is here; http://tldp.org/HOWTO/Program-Librar...libraries.html

Thanks man. I'll check it out.

wh33t 01-13-2012 05:57 PM

Quote:

Originally Posted by wh33t (Post 4572260)
Thanks man. I'll check it out.

Unfortunately that stuff is well beyond my knowledge. I get that the program is trying to find some libraries and it's unable to do so. So how can I check and see if I have those Libraries? if i don't have them, where can I get them.

If I have them, how can I tell the program to look in the right place?

alan_ri 01-14-2012 08:56 AM

Well to find where is certain library you can use whereis command;
Code:

[alan@ORION ~]$ whereis libdl.so.2
libdl.so: /lib64/libdl.so.2

So I have libdl.so.2 library in my /lib64/ directory (I'm on 64 bit system). You can use that command to find where are all the libraries you need or if they are.

About that program you want to use, as I said, you need to read whats in the README file or whatever file there is in that package or wherever which can tell you more about how to install it. If you can provide something about the installation of that program here (I mean official documentation), I believe we can work something out.

OK, I did quick Google search and I found this; http://www.poppa.se/blog/howto-install-zend-studio/
See if it helps and as I thought it might have something to do with the kernel and architecture. Post the output of;
Code:

uname -a

wh33t 01-18-2012 11:47 AM

Quote:

Originally Posted by alan_ri (Post 4574366)
Well to find where is certain library you can use whereis command;
Code:

[alan@ORION ~]$ whereis libdl.so.2
libdl.so: /lib64/libdl.so.2

So I have libdl.so.2 library in my /lib64/ directory (I'm on 64 bit system). You can use that command to find where are all the libraries you need or if they are.

About that program you want to use, as I said, you need to read whats in the README file or whatever file there is in that package or wherever which can tell you more about how to install it. If you can provide something about the installation of that program here (I mean official documentation), I believe we can work something out.

OK, I did quick Google search and I found this; http://www.poppa.se/blog/howto-install-zend-studio/
See if it helps and as I thought it might have something to do with the kernel and architecture. Post the output of;
Code:

uname -a

Wow man. What an incredible post. As much as I'd like to just go in there and start copying and pasting things I'd actually like to know what is going as well. Do you happen to know what this is doing?

Code:

cat ZendStudio-5_2_0.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > ZendStudio-5_2_0.bin
uname -a

Quote:

Linux wh33tbox 2.6.32-37-generic-pae #81-Ubuntu SMP Fri Dec 2 22:24:22 UTC 2011 i686 GNU/Linux

TobiSGD 01-18-2012 12:00 PM

Quote:

Originally Posted by wh33t (Post 4577985)
Wow man. What an incredible post. As much as I'd like to just go in there and start copying and pasting things I'd actually like to know what is going as well. Do you happen to know what this is doing?

Code:

cat ZendStudio-5_2_0.bak | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > ZendStudio-5_2_0.bin

This is sending the contents of a file named ZendStudio-5_2_0.bak through a pipe, where sed is receiving it, searching for the words export LD_ASSUME_KERNEL and replacing them with #xport LD_ASSUME_KERNEL (which is actually simply commenting it out) and then directing the data to a new (or already existing) file named ZendStudio-5_2_0.bin.
So in simple words: It searches for the mentioned line and comments it out.

wh33t 01-18-2012 12:11 PM

Quote:

Originally Posted by TobiSGD (Post 4577996)
This is sending the contents of a file named ZendStudio-5_2_0.bak through a pipe, where sed is receiving it, searching for the words export LD_ASSUME_KERNEL and replacing them with #xport LD_ASSUME_KERNEL (which is actually simply commenting it out) and then directing the data to a new (or already existing) file named ZendStudio-5_2_0.bin.
So in simple words: It searches for the mentioned line and comments it out.

Linux is amazing.

So should I run that command from a Bash script? Or can I just copy the commands one by one. I did try it doing the copy and paste thing, one by one but the Zend Installer said something about it not being the original file I downloaded and that I shouldn't install from that file. I can re-do it all and give you the actual error messages but I figured maybe I should run it from a Bash Script first?

TobiSGD 01-18-2012 01:51 PM

There is no difference if you do it from a script or the command-line. There seems to be a check in the installer against modifying it. May be there is an option to disable that check. Try to run the installer with the --help option and see if it outputs a help display for options.


All times are GMT -5. The time now is 01:18 AM.