i-rinat / freshplayerplugin

ppapi2npapi compatibility layer
MIT License
727 stars 52 forks source link

Question about the install prerequisites #303

Closed JackieMium closed 8 years ago

JackieMium commented 8 years ago

I am new to Linux and this is maybe a stupid question. I am using Gentoo 64bit. I got it all working now after installing some of the listed install prerequisites. Now I am curious as I HAVE got it working fine. Are those install prerequisites still needed or is it that they are just necessary to compile phase? Aka, are those install prerequisites safe to remove? Sorry if this is the wrong place to ask or this is a so stupid question.

i-rinat commented 8 years ago

Well, cmake, gcc, g++, pkg-config, and ragel are used only during compilation phase. They can be removed after without effect. Others are development packages, headers and unversioned library symlinks. They also can be removed, if you keep actual libraries installed. Perhaps, Gentoo doesn't split libraries into multiple packages. In that case you should keep them.

JackieMium commented 8 years ago

Thanks for your help. Think I learnt it the hard way. I removed the 6 packages I emerged earlier(libevent ragel libva libvdpau libva-vdpau-driver and libv4l) and FreshPlayer stopped working. Guess they ARE needed then.

bootkiller commented 8 years ago

@JackieMium Don't ever remove those packages like that, always use your distributions package manager to do it for you. https://wiki.gentoo.org/wiki/Knowledge_Base:Remove_orphaned_packages

JackieMium commented 8 years ago

@bootkiller Yes, Gentoo uses Portage to manager PKGs and the way you mentioned is the proper one to remove those PKGs. However, the 6 PKGs I mentioned above were installed using emerge --oneshot PKGand the --oneshot option is to avoid those PKGs from adding to the world list. Because adding everything you need into the world list is not the good way for Portage to manage the system and all its PKGs, Portage will have to take a long time to calculate dependencies by doing that. The best way is to add freshplayerplugin (in this example) in the world list and this will automatically pulls in all its dependencies(ie the 6 PKGs here). However, the problem here is that you cannot add freshplayerplugin to your world list.

grray commented 8 years ago

@JackieMium I did today emerge -av freshplayerplugin and got it working in firefox. Without any other dependencies, except i have chrome installed. There is guide in gentoo wiki about this https://wiki.gentoo.org/wiki/Adobe_Flash

JackieMium commented 8 years ago

@grray My mistake. I did search in Portage by eix -S fresh and didn't see freshplayerplugin. Today I searched via eix -s fresh and there freshplayerplugin was. Suppose it's in Gentoo Portage and I just didn't know. Thanks all guys for your patience. PS: @i-rinat It occurred to me that it might be a good idea to put something like Gentoo users can get freshpayerplugin in official Portage in README.

i-rinat commented 8 years ago

it might be a good idea to put something like Gentoo users can get freshpayerplugin in official Portage in README.

I'd like to postpone that for a while.