Error running Dartium

52 views
Skip to first unread message

Matthew Butler

unread,
Jun 1, 2012, 12:18:46 PM6/1/12
to mi...@dartlang.org
Hi Folks,

I just did a clean install on my system (switching distro's to one that is... more supported). In any case, I installed the latest integrated build but I'm running into a strange error trying to launch a project in dartium. Below is the error I'm receiving within the Dart Editor:

Could not launch browser: java.io.IOException: Cannot run program "~/dart/dart-sdk/chromium/chrome" (in directory "~/dart/dart-sdk/chromium"): error=2, No such file or directory

(Note I replaced my full home directory path in the error above. The actual error is the same but with my home directory instead).

I have verified that the chrome file is in that directory. I tried running from command prompt and receive this:
~/dart/dart-sdk/chromium$ ./chrome
bash: ./chrome: No such file or directory

Again, ls in that directory shows me that it is there and an executable file.

Anyone else run into this issue? Perhaps I just have a corrupt download? Other suggestions?

Thanks,
Matt

Anton Muhin

unread,
Jun 1, 2012, 12:22:15 PM6/1/12
to Matthew Butler, mi...@dartlang.org
Matt, most probably you're on x64 bit distro. To run Dartium you need
some 32-bit libs, http://code.google.com/p/dart/issues/detail?id=2052
is a common source of tricks for various distros.

yours,
anton.

Matthew Butler

unread,
Jun 1, 2012, 12:23:04 PM6/1/12
to mi...@dartlang.org
Just a follow up on this. I just tested running one of my console/command line apps and received a similar error about dart:

Cannot run program "~/dart/dart-sdk/bin/dart" (in directory "~/src/dart/mud"): error=2, No such file or directory

Very strange...

Thanks,
Matt

Anton Muhin

unread,
Jun 1, 2012, 12:32:53 PM6/1/12
to Matthew Butler, mi...@dartlang.org
That's most probably missing libs issue.

yours,
anton.

Matthew Butler

unread,
Jun 1, 2012, 12:37:35 PM6/1/12
to mi...@dartlang.org, Matthew Butler
 Hi Anton,

Thanks for the reply.

On Friday, June 1, 2012 1:32:53 PM UTC-3, Anton Muhin wrote:
That's most probably missing libs issue.

yours,
anton.

 Any suggestion as to what libs I'm missing that is affect not just Dartium but also the dartVM? I did download the 64-bit Dart SDK. And while I realize the dartium is a 32-bit compilation, I didn't think the dartVM was as well.

Additionally in the past when trying to run the 32-bit dartium on a 64-bit os, I received errors about missing libraries, not simply that the file doesn't exist.

Thanks for any info you can provide,

Matt

Anton Muhin

unread,
Jun 1, 2012, 12:39:06 PM6/1/12
to Matthew Butler, mi...@dartlang.org, Siva Annamalai, Ivan Posva
DartVM, it's weird. May you provide exact problem you have (cc'ing
couple of VM experts here as well).

yours,
anton.

Matthew Butler

unread,
Jun 1, 2012, 12:44:46 PM6/1/12
to mi...@dartlang.org, Matthew Butler, Siva Annamalai, Ivan Posva
Unfortunately I'm not sure what other information I can provide. Both Dartium and DartVM executables, when I try to run them give me the error "No such file or directory". This occurs if I try to run the applications through the Dart Editor (Latest Integration Build), or from the command line. Eg:

~/dart/dart-sdk/bin/dart DartMud.dart 
bash: ~/dart/dart-sdk/bin/dart: No such file or directory

Again in the bash error, I replaced my home directory with the ~/ but beyond that, that is all I receive for an error. If I check the directory I see these files:

$ ls -l ~/dart/dart-sdk/bin/
total 30008
-rwx------ 1 <user> <group>     30711616 May 30 10:39 dart
-rwx------ 1 <user> <group>      360 May 30 10:39 dart2js
-rwx------ 1 <user> <group>      194 May 30 10:39 frogc
-rw------- 1 <user> <group>     719 May 30 10:39 frogc.dart
-rwx------ 1 <user> <group>     176 May 30 10:39 pub

Similar issue when trying to run Dartium from ~/dart/dart-sdk/chromium/chrome

Thanks,
Matt

Anton Muhin

unread,
Jun 1, 2012, 12:46:43 PM6/1/12
to Matthew Butler, mi...@dartlang.org, Siva Annamalai, Ivan Posva, Dan Grove
Thanks, Matt, really weird. Dan, any opinions?

yours,
anton.

Dan Grove

unread,
Jun 1, 2012, 12:54:29 PM6/1/12
to Anton Muhin, Matthew Butler, mi...@dartlang.org, Siva Annamalai, Ivan Posva
Hi Matt-

can you post the results of

file ~/dart/dart-sdk/bin/dart
ldd ~/dart/dart-sdk/bin/dart

Dan

Matthew Butler

unread,
Jun 1, 2012, 12:58:31 PM6/1/12
to mi...@dartlang.org, Anton Muhin, Matthew Butler, Siva Annamalai, Ivan Posva
Hi Dan,

Sure can:
$ file ~/dart/dart-sdk/bin/dart
~/dart/dart-sdk/bin/dart: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=0xeb7fec6c9d5ddc5aec6f8ab5e91d9a0dd11825c6, not stripped

$ ldd ~/dart/dart-sdk/bin/dart
not a dynamic executable

I do see it's a 32-bit exe, with the gtk.x86_64.zip download. Is that expected?

Thanks,
Matt

Dan Grove

unread,
Jun 1, 2012, 1:09:21 PM6/1/12
to Matthew Butler, mi...@dartlang.org, Anton Muhin, Siva Annamalai, Ivan Posva

Matthew Butler

unread,
Jun 1, 2012, 1:14:53 PM6/1/12
to mi...@dartlang.org, Matthew Butler, Anton Muhin, Siva Annamalai, Ivan Posva
I am running Ubuntu (12.04 64-Bit). As mentioned it is a clean install, but using a full installation of the standard version (ie, not xubuntu or kubuntu or anything), and then additional full installation of "gnome" including gnome shell etc. 

Since ldd says it's not a dynamic executable, any thoughts on what libraries I'm missing for the vm?

Thanks,
Matt

Dan Grove

unread,
Jun 1, 2012, 2:02:37 PM6/1/12
to Matthew Butler, mi...@dartlang.org, Anton Muhin, Siva Annamalai, Ivan Posva
Just to be clear, you have installed ia32-libs on your machine, correct?

Matthew Butler

unread,
Jun 1, 2012, 2:07:02 PM6/1/12
to mi...@dartlang.org, Matthew Butler, Anton Muhin, Siva Annamalai, Ivan Posva
Hi Dan,

No that may be what I'm missing. I'm installing those now and will give it another go and let you know.

Thanks,
Matt

Matthew Butler

unread,
Jun 1, 2012, 2:17:39 PM6/1/12
to mi...@dartlang.org, Matthew Butler, Anton Muhin, Siva Annamalai, Ivan Posva
Thanks Dan,

That did it. Was missing the ia32-libs package.

Matt

Dan Grove

unread,
Jun 1, 2012, 3:42:17 PM6/1/12
to Matthew Butler, mi...@dartlang.org, Anton Muhin, Siva Annamalai, Ivan Posva
great!
Reply all
Reply to author
Forward
0 new messages