Giter Site home page Giter Site logo

Comments (3)

dosubot avatar dosubot commented on August 21, 2024 3

🤖

Hey again, @leonsilicon! Great to see you back. Hope you're doing well.

The parse error you're encountering when running pkgx install freedesktop.org/cppunit is likely due to the package not being listed in the package.json file. The package.json file in the pkgx repository currently only contains zlib.net^1.2 and python.org@latest.

To resolve this error, you need to add freedesktop.org/cppunit to the package.json file. Here's how you can do it:

{
  "pkgx": "zlib.net^1.2 python.org@latest freedesktop.org/cppunit"
}

After updating the package.json file, you should be able to install freedesktop.org/cppunit without encountering the parse error.

As for the functionality of the pkgx install command, it is responsible for installing packages. It starts by resolving the dependency graph, gets the dependencies of each package in the input list, prepares the packages for installation, resolves the dependencies of the packages, installs and links the packages, and finally returns the installed packages and the environment. You can find more details about this in the src/prefab/install.ts file in the pkgx repository.

I hope this helps! If you have any other questions or need further clarification, feel free to ask.

Best,
Dosu

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

from pkgx.

mxcl avatar mxcl commented on August 21, 2024 1

Dupes #865

from pkgx.

jhheider avatar jhheider commented on August 21, 2024
$ pkgx install freedesktop.org/cppunit
pkgx: installed: ~/.local/bin/cppunit-config
pkgx: installed: ~/.local/bin/DllPlugInTester
$ rm ~/.local/bin/cppunit-config 
$ rm ~/.local/bin/DllPlugInTester 

#worksforme

to troubleshoot, can you paste in the contents of your

  • Darwin: ~/Library/Application\ Support/pkgx/pantry/projects/freedesktop.org/cppunit/package.yml
  • Linux: ~/.local/state/pkgx/pantry/projects/freedesktop.org/cppunit/package.yml

it should specifically match

distributable:
  url: http://dev-www.libreoffice.org/src/cppunit-{{version}}.tar.gz
  strip-components: 1

versions:
  url: https://dev-www.libreoffice.org/src/cppunit/
  match: /cppunit-\d+\.\d+\.\d+.tar.gz/
  strip:
    - /^cppunit-/
    - /\.tar\.gz$/

build:
  script: |
    ./configure $ARGS
    make --jobs {{ hw.concurrency }} install
  env:
    ARGS:
      - --prefix="{{prefix}}"
    linux/aarch64:
      ARGS:
        - --build=aarch64-unknown-linux-gnu

provides:
  - bin/cppunit-config
  - bin/DllPlugInTester

test: cppunit-config --version | grep {{version}}

exactly.

assuming it doesn't (though we'll be interested to see what it does contain), pkgx --sync should refresh it.

from pkgx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.