Languages

Menu
Sites
Language
Can't install tizen-sdk from command line

Dear colleagues

I need to install tizen-sdk to build system (more than 30 build agents).  Its very convinient to use command line installer for automation.

I have issue with tizen-sdk command line installation.

Please see console output

Have you any ideas how to fix it?

 

builder@stbs0001:~$ cat /etc/issue
Ubuntu 14.04.1 LTS \n \l

builder@stbs0001:~$ uname  -r
3.13.0-46-generic
builder@stbs0001:~$ uname  -a
Linux stbs0001 3.13.0-46-generic #77-Ubuntu SMP Mon Mar 2 18:23:39 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
builder@stbs0001:~$ ./tizen-sdk_2.3.63_ubuntu-64.bin -install -accept_license -f tizen-sdk-image-TizenSDK_2.3.0_Rev2-ubuntu64.zip
 CLI mode, installer does not need GUI Environment.
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
        at org.eclipse.swt.SWT.error(Unknown Source)
        at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
        at org.eclipse.swt.widgets.Display.create(Unknown Source)
        at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
        at org.tizen.installmanager.ui.InstallManagerWindow.checkingJava(InstallManagerWindow.java:1009)
        at org.tizen.installmanager.ui.InstallManagerWindow.main(InstallManagerWindow.java:1042)
        ... 5 more
builder@stbs0001:~$ java -version
java version "1.7.0_72"
Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)
builder@stbs0001:~$
 
View Selected Answer

Responses

2 Replies
Mark as answer
Shuhrat Dehkanov
Caused by: org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]

Although I was not able to reproduce this problem, the installer seems to be trying to launch GUI somewhere in between.

However, I also could not initialize the install process with the command you have used.

~/Downloads$ ./tizen-sdk_2.3.63_ubuntu-64.bin -install -accept_license -f tizen-sdk-image-TizenSDK_2.3.0_Rev2-ubuntu64.zip 
 CLI mode, installer does not need GUI Environment. 
***********************************************
********* Initialize install manager **********
***********************************************
Initialize time : 182
Fail to console install.


Using the full path for SDK image solved the problem.

~/Downloads$ ./tizen-sdk_2.3.63_ubuntu-64.bin -install -accept_license -f ~/Downloads/tizen-sdk-image-TizenSDK_2.3.0_Rev2-ubuntu64.zip
 CLI mode, installer does not need GUI Environment. 
***********************************************
********* Initialize install manager **********
***********************************************
Initialize time : 182
Extracting SDK package list completed...

****************************************
******** Start SDK installation ********
****************************************
binary/cross-arm-gdb-7.5_2.1.14_ubuntu-64.zip ..... done.
...

COMMON-EMULATOR is installing...
TYPICAL-MOBILE-2.3-Emulator is installing...
TYPICAL-MOBILE-2.3 is installing...
Success to console install.
~/Downloads$

 

My environment details:

$ uname -ra
Linux 3.13.0-52-generic #86-Ubuntu SMP Mon May 4 04:32:59 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

$ java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

Hope this helps.

 

Oleksii Tsymbaliuk

Hello Shuhrat Dehkanov

Thank you for your answer. It was useful for me.

Also need to use variable "DISPLAY=:0" in any case

builder@spbs0046:~$ ./tizen-sdk_2.3.63_ubuntu-64.bin -install -accept_license -f ~/tizen-sdk-image-TizenSDK_2.3.0_Rev2-ubuntu64.zip
 CLI mode, installer does not need GUI Environment.
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
        at org.eclipse.swt.SWT.error(Unknown Source)
        at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
        at org.eclipse.swt.widgets.Display.create(Unknown Source)
        at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
        at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
        at org.tizen.installmanager.ui.InstallManagerWindow.checkingJava(InstallManagerWindow.java:1009)
        at org.tizen.installmanager.ui.InstallManagerWindow.main(InstallManagerWindow.java:1042)
        ... 5 more

 

 

After export DISPLAY=:0

builder@spbs0046:~$ export DISPLAY=:0
builder@spbs0046:~$ ./tizen-sdk_2.3.63_ubuntu-64.bin -install -accept_license -f tizen-sdk-image-TizenSDK_2.3.0_Rev2-ubuntu64.zip
 CLI mode, installer does not need GUI Environment.
***********************************************
********* Initialize install manager **********
***********************************************
Initialize time : 45
Fail to console install.
builder@spbs0046:~$
builder@spbs0046:~$

 

If use full path to image archive

 

builder@spbs0046:~$ ./tizen-sdk_2.3.63_ubuntu-64.bin -install -accept_license -f ~/tizen-sdk-image-TizenSDK_2.3.0_Rev2-ubuntu64.zip
 CLI mode, installer does not need GUI Environment.
***********************************************
********* Initialize install manager **********
***********************************************
Initialize time : 75
Extracting SDK package list completed...

****************************************
******* Start SDK uninstallation *******
****************************************
Warning> The SDK is already running. InstallManager will kill all SDK processes
Killed
builder@spbs0046:~$ Success to kill running SDK processes.

****************************************
******** Start SDK installation ********
****************************************
binary/sdb_2.2.51_ubuntu-64.zip ..... done.
binary/sdk-info_2.3.2_ubuntu-64.zip ..... done.
binary/install-manager_2.3.63_ubuntu-64.zip ..... done.
binary/COMMON-MANDATORY_1.0.57_ubuntu-64.zip ..... done.
sdb is downloading...
sdb is uninstalling...
sdk-info is downloading...
sdb is installing...
install-manager is downloading...
sdk-info is uninstalling...
sdk-info is installing...
install-manager is uninstalling...
COMMON-MANDATORY is downloading...
install-manager is installing...
COMMON-MANDATORY is uninstalling...
COMMON-MANDATORY is installing...
Success to console install.