Giter VIP home page Giter VIP logo

Comments (11)

arturoc avatar arturoc commented on June 30, 2024

yeah that would be useful, wget is also needed

from apothecary.

ofTheo avatar ofTheo commented on June 30, 2024

I wonder if we could avoid using realpath for OS X?
adding a requirement to have brew installed seems like an extra step that might not be needed.

For wget OS X equivalent is:
curl -O <url>

@Daandelange where in the script are you getting the error?

from apothecary.

Daandelange avatar Daandelange commented on June 30, 2024

@ofTheo On every line where realpath is called in apothecary/apothecary a line error is thrown saying the execution failed, ending up in a (weird?) failure message. Also, the setting variables are not set.

$ ./apothecary update core
./apothecary: line 111: realpath: command not found
./apothecary: line 112: realpath: command not found
./apothecary: line 113: realpath: command not found
./apothecary: line 114: realpah: command not found
OF: 
APOTHECARY: /Developer/openFrameworks/scripts/apothecary/apothecary
FORMULAS: 
BUILD: 
LIBS_DIR: 
ADDONS: /addons
 No formula for lib "PROGRESS"

Alternatively I found a series of replacement-functions to realpath and some more.
There's also a more lightweight dependency : realpath-osx

from apothecary.

arturoc avatar arturoc commented on June 30, 2024

@ofTheo this scripts now run on the test servers so we won't need to run them locally most of the time. realpath is really useful to figure out some things and wget is usually more reliable than curl since it retries a certain number of times and in the case of linux is always there by default while you have to manually install curl so if we changed it we would need to install curl for every other platform anyway.

from apothecary.

arturoc avatar arturoc commented on June 30, 2024

btw, @Daandelange why are you trying to run apothecary locally? all the libraries are now automatically compiled whenever something changes and can be found here: http://ci.openframeworks.cc/libs

from apothecary.

ofTheo avatar ofTheo commented on June 30, 2024

@arturoc - ahh that makes sense. in that case its not a huge ask, if most of the time it won't be needed to be run locally. Also didn't realize how many places the realpath was used in.
Totally agree then!

Maybe just add a note in the ReadMe or a setup script as @Daandelange suggests.
Cheers!!

from apothecary.

Daandelange avatar Daandelange commented on June 30, 2024

from apothecary.

Daandelange avatar Daandelange commented on June 30, 2024

Note: I just noticed there's an osx install script in /scripts/osx/install.sh already installing coreutils. :)
Closing this issue.

from apothecary.

bakercp avatar bakercp commented on June 30, 2024

I'd like to re-open this. For situations where we have addons that require custom ofx add-on builds that use apothecary, we need to have a little easier support for people who don't have the full master branch cloned. Possible solutions:

  • Replace realpath and wget
  • Include scripts/osx/install.sh in the distribution version of OS X

By the way, I'm also missing realpath on linux / OS X builds when I use the addons/ci scripts, so this would solve that problem too.

from apothecary.

arturoc avatar arturoc commented on June 30, 2024

as @Daandelange noted when closing the issue there's already a scripts/osx/install.sh script that installs the necessary bits. isn't that enough? this tools are used cause they are much more reliable than the alternatives so i don't think substituting them is a good idea.

from apothecary.

bakercp avatar bakercp commented on June 30, 2024

Got it. I was looking in the openFrameworks/scripts/osx dir.

from apothecary.

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.