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

How do I install Plaso from source? #4734

Closed
q2dg opened this issue Aug 10, 2023 · 3 comments
Closed

How do I install Plaso from source? #4734

q2dg opened this issue Aug 10, 2023 · 3 comments
Assignees
Labels
deployment Changes to deployment or development utility scripts documentation Issues relating to documentation question

Comments

@q2dg
Copy link

q2dg commented Aug 10, 2023

After cloning Plaso's git, I suspect the way would be doing setup.py install but this method is deprecated, so I don't know how to go
Thanks

@joachimmetz
Copy link
Member

joachimmetz commented Aug 10, 2023

Have a read of https://plaso.readthedocs.io/en/latest/ both MacOS and developer instruction cover installing from source. make sure to carefully read it.

@joachimmetz joachimmetz changed the title There's no instructions to install Plaso from source, neither in readthedocs nor in readme How do I install Plaso from source? Aug 10, 2023
@joachimmetz joachimmetz self-assigned this Aug 10, 2023
@joachimmetz joachimmetz added deployment Changes to deployment or development utility scripts documentation Issues relating to documentation labels Aug 11, 2023
@q2dg
Copy link
Author

q2dg commented Aug 12, 2023

Hello. Thanks

I overlooked MacOS instructions because they are listed below a section in "https://plaso.readthedocs.io/en/latest/sources/user/Users-Guide.html with the title "Installing the packaged release" (and my system is not a MacOS). Maybe adding a "Installing from source" section where MacOS and Linux system were listed would help

On the other hand, I've tried to install Plaso on my Fedora 38 system from source (in a very dirty way, though) and I think I've succeed. I write down the command I've used for reference:

1.-I've installed these packages first: "gcc", "gcc-c++", "python-devel" and "openssl-devel" (in Ubuntu the name of these packages are, respectively: "gcc", "g++", "python-dev" and "libssl-dev")
2. git clone https://github.com/log2timeline/plaso
3. cd plaso && sudo pip install -r requirements.txt
4. sudo ./setup.py install

However, when doing step 3 I've got a bunch of these warning messages (each for nearly every module): "DEPRECATION: libxxxx-python is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559" So I insist, this installation method seems deprecated, so I would like to know another diferent way to install Plaso from sources.

Thanks!

@joachimmetz
Copy link
Member

Maybe adding a "Installing from source" section where MacOS and Linux system were listed would help

No it would not, because it will trick people that are not too familiar with installing from source to believe this is straightforward. I strongly recommend to stick with a recommended installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Changes to deployment or development utility scripts documentation Issues relating to documentation question
Projects
None yet
Development

No branches or pull requests

2 participants