Can't run script

Asked by arnupharb

I want to install my Longman Dictionary It also support for Ubuntu but I don't understand a complex cammands and processes.
So here my result
arnupharb@arnupharb-G41M-Combo:~$ sh ~/home/arnupharb/Desktop/linux/installation.sh
sh: 0: Can't open /home/arnupharb/home/arnupharb/Desktop/linux/installation.sh

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

chmod +x ~/home/arnupharb/Desktop/linux/installation.sh

You can then run:

cd ~/home/arnupharb/Desktop/linux/
./installation.sh

Should do it

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2
Revision history for this message
arnupharb (arnupharb-master) said :
#3

here 1st result
arnupharb@arnupharb-G41M-Combo:~$ chmod +x ~/home/arnupharb/Desktop/linux/installation.sh
chmod: ไม่สามารถเข้าถึง ‘/home/arnupharb/home/arnupharb/Desktop/linux/installation.sh’: No such file or directory
arnupharb@arnupharb-G41M-Combo:~$ cd ~/home/arnupharb/Desktop/linux/
bash: cd: /home/arnupharb/home/arnupharb/Desktop/linux/: No such file or directory
arnupharb@arnupharb-G41M-Combo:~$ ./installation.sh
bash: ./installation.sh: No such file or directory
arnupharb@arnupharb-G41M-Combo:~$ cd ~/home/arnupharb/Desktop/linux/
bash: cd: /home/arnupharb/home/arnupharb/Desktop/linux/: No such file or directory

and second

arnupharb@arnupharb-G41M-Combo:~$ sudo apt-get install libgtk1.2
[sudo] password for arnupharb:
กำลังอ่านรายชื่อแพกเกจ... เสร็จแล้ว
กำลังสร้างโครงสร้างลำดับความสัมพันธ์
กำลังอ่านข้อมูลสถานะ... เสร็จแล้ว
E: ไม่พบแพกเกจ libgtk1.2
E: ไม่พบแพกเกจที่ตรงกับนิพจน์เรกิวลาร์ 'libgtk1.2'

for this result libgtk not found

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Then the folder doesn't exist. Which is why it doesn't work.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

What is the output of the terminal commands

uname -a
lsb_release -crid
find ~ -name installation.sh -ls
find ~ -name setup.sh -ls
dpkg -l | grep libgtk

Revision history for this message
arnupharb (arnupharb-master) said :
#6

arnupharb@arnupharb-G41M-Combo:~$ uname -a
Linux arnupharb-G41M-Combo 3.16.0-33-generic #44~14.04.1-Ubuntu SMP Fri Mar 13 10:33:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
arnupharb@arnupharb-G41M-Combo:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
arnupharb@arnupharb-G41M-Combo:~$ find ~ -name installation.sh -ls
6298532 4 -rw-rw-r-- 1 arnupharb arnupharb 140 ก.พ. 10 2005 /home/arnupharb/\340\270\236\340\270\267\340\271\211\340\270\231\340\271\202\340\270\225\340\271\212\340\270\260/linux/installation.sh
arnupharb@arnupharb-G41M-Combo:~$ find ~ -name setup.sh -ls
arnupharb@arnupharb-G41M-Combo:~$ dpkg -l | grep libgtk
ii libgtk-3-0:amd64 3.10.8-0ubuntu1.4 amd64 GTK+ graphical user interface library
ii libgtk-3-bin 3.10.8-0ubuntu1.4 amd64 programs for the GTK+ graphical user interface library
ii libgtk-3-common 3.10.8-0ubuntu1.4 all common files for the GTK+ graphical user interface library
ii libgtk2-perl 2:1.249-2 amd64 Perl interface to the 2.x series of the Gimp Toolkit library
ii libgtk2.0-0:amd64 2.24.23-0ubuntu1.1 amd64 GTK+ graphical user interface library
ii libgtk2.0-bin 2.24.23-0ubuntu1.1 amd64 programs for the GTK+ graphical user interface library
ii libgtk2.0-common 2.24.23-0ubuntu1.1 all common files for the GTK+ graphical user interface library
ii libgtkglext1 1.2.0-3.1fakesync3 amd64 OpenGL Extension to GTK+ (shared libraries)
ii libgtkmm-3.0-1:amd64 3.10.1-0ubuntu2 amd64 C++ wrappers for GTK+ (shared libraries)
ii libgtksourceview-3.0-1:amd64 3.10.2-0ubuntu1 amd64 shared libraries for the GTK+ syntax highlighting widget
ii libgtksourceview-3.0-common 3.10.2-0ubuntu1 all common files for the GTK+ syntax highlighting widget

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

OK. Apparently your Desktop folder is not named "Desktop", but the equivalent in your home language.

Try opening a terminal window and issue the commands

cd \340\270\236\340\270\267\340\271\211\340\270\231\340\271\202\340\270\225\340\271\212\340\270\260/Linux
chmod a+x installation.sh
./installation.sh

What is the result?

You have libgtk2.0 installed, so I assume that you do not need the older version libgtk1.2

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

Oops. sorry wrong autocorrection, the commands should have been

cd \340\270\236\340\270\267\340\271\211\340\270\231\340\271\202\340\270\225\340\271\212\340\270\260/linux
chmod a+x installation.sh
./installation.sh

Revision history for this message
arnupharb (arnupharb-master) said :
#9

arnupharb@arnupharb-G41M-Combo:~$ cd \340\270\236\340\270\267\340\271\211\340\270\231\340\271\202\340\270\225\340\271\212\340\270\260/linux
bash: cd: 340270236340270267340271211340270231340271202340270225340271212340270260/linux: No such file or directory
arnupharb@arnupharb-G41M-Combo:~$ chmod a+x installation.sh
chmod: ไม่สามารถเข้าถึง ‘installation.sh’: No such file or directory
arnupharb@arnupharb-G41M-Combo:~$ ./installation.sh
bash: ./installation.sh: No such file or directory

Revision history for this message
arnupharb (arnupharb-master) said :
#10

I copied all of my files to my desktop

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

What is the name of your Desktop (I assume it is translated to your local language and written in the appropriate non-ASCII characters)?

Revision history for this message
arnupharb (arnupharb-master) said :
#12

the name of my desktop is "พื้นโต๊ะ"
Could you please write a commands to run and install my program?

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

I assume the command to execute in a terminal must be

cd พื้นโต๊ะ
cd linux
chmod a+x installation.sh
 ./installation.sh

If this still does not work, please provide all output of the commands, and the output of

ls -la ~

Revision history for this message
arnupharb (arnupharb-master) said :
#14

it doesn't support on 64 bit but all of your commands are working thank you
Or Do you know how to install in 64 bit?

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

What effect do you get if you try starting the program on your 64 bit system?
Do you get error messages?

Usually it is possible to run 32bit programs on 64bit systems, when the 32bit libraries are installed in addition to the 64bit libraries.

What is the output of

dpkg --print-architecture
dpkg --print-foreign-architectures

Revision history for this message
arnupharb (arnupharb-master) said :
#16

arnupharb@arnupharb-G41M-Combo:~$ dpkg --print-architecture
amd64
arnupharb@arnupharb-G41M-Combo:~$ dpkg --print-foreign-architectures
i386

Revision history for this message
Manfred Hampl (m-hampl) said :
#17

The dpkg setup seems to be correct to allow installing and running 32bit programs on your 64 bit system

What happens if you try running that program?

What was the output of the installation script?

Revision history for this message
Launchpad Janitor (janitor) said :
#18

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.