Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brackets can't run on Debian 7 (Wheezy) #12359

Open
core-ai-bot opened this issue Aug 31, 2021 · 30 comments
Open

Brackets can't run on Debian 7 (Wheezy) #12359

core-ai-bot opened this issue Aug 31, 2021 · 30 comments

Comments

@core-ai-bot
Copy link
Member

Issue by tranduyhung
Sunday Aug 18, 2013 at 00:48 GMT
Originally opened as adobe/brackets#4816


Update from@jasonsanjose:

A fix for this issue requires an update to CEF https://code.google.com/p/chromiumembedded/ to fix the glib dependency. A story for this issue is logged here https://trello.com/c/CySUsuf4.

Original Message

Hi,

I get the following error when run Brackets sprint 29 on my Debian 64bit:

/opt/brackets/Brackets: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /opt/brackets/Brackets).

I have tried to applied the solutions in #4720 ln -s libudev.so.1 libudev.so.0, however libudev.so.0 has already existed in my system.

$ ls -al libudev.*
lrwxrwxrwx 1 root root 17 Jul 20 11:38 libudev.so.0 -> libudev.so.0.13.0
-rw-r--r-- 1 root root 59992 Apr 29 05:36 libudev.so.0.13.0

@core-ai-bot
Copy link
Member Author

Comment by favadi
Sunday Aug 18, 2013 at 06:06 GMT


This bug is also happend for me on Debian 7 64 bit.

@core-ai-bot
Copy link
Member Author

Comment by thefirstofthe300
Monday Aug 19, 2013 at 05:09 GMT


Try reinstalling libc6 on your system and see what happens. Also, please be sure you have the dev libraries also installed.

If that doesn't work, just for kicks and giggles, try:

sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libc-2.17.so

And please post the output of any errors thrown by Brackets afterwards? Of course, if the above doesn't work, delete the symlink (after letting me know what the output is). :)

The libudev problem doesn't seem to pertain to this.

@core-ai-bot
Copy link
Member Author

Comment by larsemil
Monday Aug 19, 2013 at 08:07 GMT


Duplicate of adobe/brackets#4720

@core-ai-bot
Copy link
Member Author

Comment by tranduyhung
Monday Aug 19, 2013 at 15:46 GMT


Hi@DaBungalow for your suggestion. libc-2.17.so is only available in Debian Jessie and Sid, we are using Debian Wheezy. In Debian Wheezy libc6 package provides glibc 2.13 while Brackets requires 2.14. I guess this is the problem.

I don't think this issue is duplicated with #4720, Ubuntu Raring have already had glibc 2.17 in their repository. Softwares in Ubuntu are newer than softwares in Debian.

I will try Brackets on Debian Jessie with glib 2.17 to see how it goes.

@core-ai-bot
Copy link
Member Author

Comment by tranduyhung
Tuesday Aug 20, 2013 at 01:55 GMT


Ok, I can confirm that Brackets can run on Debian Jessie with no problem. This issue only exists in Debian Wheezy where the libc is "out-of-date".

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Tuesday Aug 20, 2013 at 19:10 GMT


We get this dependency from Chromium and it appears they have the same issue https://code.google.com/p/chromium/issues/detail?id=222038 and they've marked it "won't fix". It's not likely that we would fix this on our own.

Closing.

@core-ai-bot
Copy link
Member Author

Comment by bkconrad
Thursday Aug 29, 2013 at 10:59 GMT


I just ran into this error as well. After reviewing the issue you linked to, I'd like to quote from the person who marked that chromium issue as WontFix:

Who build your copy of Chromium? The ones from chromium.org's continuous build recently switched from Lucid to Precise. Thus it is built against Ubuntu Precise's glibc (2.15) whereas Debian 7 has glibc 2.13.

The particular issue is reported against the continuous chromium build. chromium from the Debian 7 repo uses the default glibc (2.13) as evidenced by the following terminal output:

kaen@debian ~ $ ldd /usr/lib/chromium/chromium | grep libc.so
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbb950ae000)
kaen@debian ~ $ /lib/x86_64-linux-gnu/libc.so.6
GNU C Library (Debian EGLIBC 2.13-38) stable release version 2.13, by Roland McGrath et al.

So this error is not a hard limit of the chromium dependency, it is a result of inattention by the packager.

It would be a shame for Brackets to support Windows XP but not Debian 7. Debian users kind of have a thing for open source software.

@core-ai-bot
Copy link
Member Author

Comment by bkconrad
Thursday Aug 29, 2013 at 12:15 GMT


I've just successfully built and run Brackets (and brackets-shell) on Debian 7 with the default libc6 and it works fine as far as I can tell.

sprint 30 development build 0.30.0-0 (master 60dc6b72f)

I hope this issue will be fixed in the next sprint, as it is a fairly trivial fix.

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Thursday Aug 29, 2013 at 15:23 GMT


Thanks@kaen. Reopening to investigate. Are you running from a dev build or did you build an installer with grunt installer?

We recently changed our Debian packaging to match chrome's. The libc6 dependency for Chrome lists libc6 >= 2.11 https://github.com/adobe/brackets-shell/blob/master/installer/linux/debian/control#L8. This is what will be released shortly for the sprint 30 build. I'd be curious if this fixes the problem or if we need to change our build environment.

@core-ai-bot
Copy link
Member Author

Comment by bkconrad
Thursday Aug 29, 2013 at 17:59 GMT


I was originally just using a dev build, but I just ran grunt installer and the generated .deb file installed happily on my system.

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Thursday Aug 29, 2013 at 18:26 GMT


Ok great. Sounds like we can close this issue for real now. Thanks!

@core-ai-bot
Copy link
Member Author

Comment by metala
Tuesday Sep 10, 2013 at 08:24 GMT


Same issue here with Sprint 30 on Linux Mint Debian.
My build of the shell (git master) segfaults, when I open the plugins directory. I also experience #5135

@core-ai-bot
Copy link
Member Author

Comment by carragom
Friday Sep 27, 2013 at 06:13 GMT


Same problem here with sprint 30 and 31. Is there any documentation describing the steps to compile Brackets?, I tried cloning the git repo and doing grunt installer but the installer task does not exists.

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Friday Sep 27, 2013 at 17:39 GMT


@carragom https://github.com/adobe/brackets-shell/wiki/Building-Brackets-Shell. Make sure you've cloned brackets-shell too, not just brackets.

@core-ai-bot
Copy link
Member Author

Comment by carragom
Friday Sep 27, 2013 at 18:27 GMT


@peterflynn No wonder it was not working for me, was missing a whole repo, thanks will give a try.

@core-ai-bot
Copy link
Member Author

Comment by carragom
Friday Sep 27, 2013 at 18:54 GMT


Well I tried that and I got an error when running npm install:

Running "build-linux" task
>> Release/libcef.so: undefined reference to `__fdelt_chk@GLIBC_2.15'
>> Release/libcef.so: undefined reference to `memcpy@GLIBC_2.14'
>> collect2: error: ld returned 1 exit status
>> make: * [out/Release/Brackets] Error 1
Warning: Task "build-linux" failed. Use --force to continue.

Aborted due to warnings.
npm ERR! weird error 3
npm ERR! not ok code 0

Looks like libcef comes in binary form and linked against GLIBC_2.14 which is not available in Debian stable. Is there a target to build libcef from source or a branch where libcef.so works with GLIBC_2.13 ?.

@core-ai-bot
Copy link
Member Author

Comment by c2c533c4f237
Saturday Sep 28, 2013 at 02:43 GMT


What is the status of this issue? I still cannot run it on sprint 31 or 30. Is the only fix to compile it yourself? It would be great if the 64bit debs were distributed with the fix. Does anyone have an unofficial deb that I could install?

@core-ai-bot
Copy link
Member Author

Comment by efx
Saturday Oct 19, 2013 at 21:41 GMT


@stacia I downloaded sprint 32 and the bug still exists.

@core-ai-bot
Copy link
Member Author

Comment by c2c533c4f237
Saturday Oct 19, 2013 at 21:49 GMT


Is there any way to prioritize this bug? It shouldn't be hard to fix. This makes it unusable on my PC and an upcoming class I'm taking is using Brackets as part of the curriculum. I don't want to have to install a different OS to use it!

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Wednesday Oct 23, 2013 at 18:29 GMT


@kaen what was involved in your fix? It sounds like it's just a build environment issue and not an issue with our packaging script? Do you think there's a workaround without changing the build environment?

@stacia we're near the end of Sprint 33, so it's likely not going to be fixed by this release. If you're able to build brackets-shell on your own like@kaen did, it may work. We're not 100% clear on the fix yet. I'm curious though, what's the class you're taking and how is Brackets involved?

@core-ai-bot
Copy link
Member Author

Comment by darkgamer120
Wednesday Oct 23, 2013 at 19:04 GMT


I get this error on Debian 7 32bit. Any updates on fixing this bug?

@core-ai-bot
Copy link
Member Author

Comment by ashickurnoor
Tuesday Nov 05, 2013 at 14:34 GMT


I am facing the same problem, any fix of it?

@core-ai-bot
Copy link
Member Author

Comment by felipehw
Friday Nov 08, 2013 at 20:20 GMT


Same problem here, any fix of it?

@core-ai-bot
Copy link
Member Author

Comment by bkconrad
Saturday Nov 09, 2013 at 00:51 GMT


Hi guys, when I got brackets to run, all I had to do was build brackets-shell myself on Debian 7. I'm pretty positive the issue can be fixed by building the packaged executable on a Debian 7 machine instead of whatever it's built on now (apparently either Ubuntu or Debian Jessie). You could also probably just install the older glibc (2.13) on the build machine and build against that instead of the later glibc it has.

This really shouldn't have been an issue for three months running ...

@core-ai-bot
Copy link
Member Author

Comment by c2c533c4f237
Saturday Nov 09, 2013 at 00:56 GMT


@kaen I agree, I was trying to build it myself but it's on a slower machine and running into dependency issues...There shouldn't need to be a workaround at this point if so many people are having the problem, especially when more and more people are transitioning away from Ubuntu.

@core-ai-bot
Copy link
Member Author

Comment by carragom
Thursday Nov 21, 2013 at 17:37 GMT


Since issue #5972 was closed stating that the only supported Debian was Jessie and this issue is about Debian Wheezy. I suppose this one can be closed in the same way ?.

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Thursday Nov 21, 2013 at 18:40 GMT


I finally got some time to try this out on Debian 7.2 (with glibc 2.13). I had to install Node.js separately https://github.com/joyent/node/wiki/backports.debian.org but I was mostly able to run the dev env setup https://github.com/adobe/brackets/wiki/Linux-Development-for-Contributors manually (following the commands in the referenced gist).

When running grunt (i.e. grunt setup build), I got all the way to the build step before failing:

Running "build-linux" task
>> Release/libcef.so: undefined reference to `__fdelt_chk@GLIBC_2.15'
>> Release/libcef.so: undefined reference to `memcpy@GLIBC_2.14'
>> collect2: error: ld returned 1 exit status
>> make: * [out/Release/Brackets] Error 1
Warning: Task "build-linux" failed. Use --force to continue.

I've come to the same conclusion as@carragom. I'll follow up with the CEF support team and see what the options are if any.

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Thursday Nov 21, 2013 at 19:31 GMT


Downloading the latest CEF release build from http://www.magpcss.net/cef_downloads/ instead of http://www.cefbuilds.com seems to fix the issue. I've posted details and the build here https://github.com/adobe/brackets/releases/tag/sprint-34.

I will follow up with the team at cefbuilds.com to see what their build environment is and what options might be available. Ideally the Brackets team won't have to setup a CEF build from source.

@core-ai-bot
Copy link
Member Author

Comment by jasonsanjose
Thursday Nov 21, 2013 at 19:37 GMT


@kaen@tranduyhung Thanks for your patience on this. If you have time, please download the test build from https://github.com/adobe/brackets/releases/tag/sprint-34 and report any issues.

The test build is exactly the same as sprint 34 (which just shipped) except for the CEF version that we use.

@core-ai-bot
Copy link
Member Author

Comment by tranduyhung
Friday Nov 22, 2013 at 01:10 GMT


Thank you very much@jasonsanjose !

I've downloaded and installed successfully, Brackets has run with no problem so far, that's great! I will do more tests and sure will report if any problem occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant