New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

libarchive

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libarchive

NodeJS bindings to libarchive

  • 0.0.2
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Install

npm install libarchive

Build

All platforms

git submodule update --init
npm install

OS X

cd deps/libarchive
cmake .
make archive_static
cd ../..
./node_modules/.bin/node-pre-gyp rebuild

Linux

cd deps/libarchive
cmake .

Edit deps/libarchive/libarchive/CMakeFiles/archive_static.dir/flags.make and add -fPIC to CFLAGS.

make archive_static
cd ../..
./node_modules/.bin/node-pre-gyp rebuild

Windows (x64)

MSBUILD=%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild

pushd deps\zlib-win64
"%MSBUILD%" /p:Platform=x64 zlib.msvs2013.vcxproj
popd

pushd deps\libarchive
cmake -A x64 -G "Visual Studio 12 2013" -DZLIB_LIBRARY=..\zlib-win64\x64\Debug\zlib.lib -DZLIB_INCLUDE_DIR=..\zlib-win64 .
"%MSBUILD%" libarchive\archive_static.vcxproj
popd

.\node_modules\.bin\node-pre-gyp rebuild

Windows (ia32)

MSBUILD=%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild

pushd deps\zlib-win64
"%MSBUILD%" /p:Platform=win32 zlib.msvs2013.vcxproj
popd

pushd deps\libarchive
cmake -A win32 -G "Visual Studio 12 2013" -DZLIB_LIBRARY=..\zlib-win64\Debug\zlib.lib -DZLIB_INCLUDE_DIR=..\zlib-win64 .
"%MSBUILD%" libarchive\archive_static.vcxproj
popd

.\node_modules\.bin\node-pre-gyp --target_arch=ia32 rebuild

Keywords

FAQs

Package last updated on 14 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc