Giter Site home page Giter Site logo

Install fail about cpm HOT 10 OPEN

kriszyp avatar kriszyp commented on June 9, 2024
Install fail

from cpm.

Comments (10)

ryanflorence avatar ryanflorence commented on June 9, 2024

Same:

MBA:~ rpflo$ curl https://raw.github.com/kriszyp/cpm/master/install | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   425  100   425    0     0    695      0 --:--:-- --:--:-- --:--:--   965
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  973k  100  973k    0     0   184k      0  0:00:05  0:00:05 --:--:--  232k
sed: 1: "/usr/local/lib/cpm/cpm": extra characters at the end of l command

from cpm.

AMorgaut avatar AMorgaut commented on June 9, 2024

I got the same error on install

from cpm.

kriszyp avatar kriszyp commented on June 9, 2024

I checked in a fix for ignoring certificate errors on curl, and Bryan's pull fixes some issues with permissions. Do these fixes fix this issue?

from cpm.

kriszyp avatar kriszyp commented on June 9, 2024

The main problem here seems to be that fact that this install script creates a link from /usr/local/bin/cpm or ~/bin/cpm to the CPM's cpm script and Mac OS simply can't determine the target directory in the script because OSX doesn't have a reliable "readlink -f $0". I am not a scripting expert, I don't how we can automate the install to automatically determine the location of the jars and lib folder to startup CPM. Suggestions welcome.

from cpm.

romanr avatar romanr commented on June 9, 2024

Does not work for me either

curl https://raw.github.com/kriszyp/cpm/master/install | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 836 100 836 0 0 352 0 0:00:02 0:00:02 --:--:-- 465
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 120 100 120 0 0 61 0 0:00:01 0:00:01 --:--:-- 72
100 975k 100 975k 0 0 72825 0 0:00:13 0:00:13 --:--:-- 110k

Then any cpm command results in same:

cpm

readlink: illegal option -- f
usage: readlink [-n] [file ...]
Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/tools/shell/Main
Caused by: java.lang.ClassNotFoundException: org.mozilla.javascript.tools.shell.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

from cpm.

sleeplessman avatar sleeplessman commented on June 9, 2024

I got this error on my mac os lion:
Joes-MacBookAir:~ xxx$ sudo curl https://raw.github.com/kriszyp/cpm/master/install | sh
Password:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 836 100 836 0 0 189 0 0:00:04 0:00:04 --:--:-- 487
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 975k 100 975k 0 0 29065 0 0:00:34 0:00:34 --:--:-- 183k
mv: rename archive to /usr/local/lib/cpm: No such file or directory
chmod: /usr/local/lib/cpm/cpm: No such file or directory
ln: /usr/local/bin/cpm: No such file or directory

from cpm.

neonstalwart avatar neonstalwart commented on June 9, 2024

to avoid the readlink error, you can set the CPM_PATH environment variable and avoid the call to readlink

from cpm.

dylans avatar dylans commented on June 9, 2024

Setting CPM_PATH makes this work for me on Lion:

CPM_PATH=/usr/local/lib/cpm cpm install dgrid

I also following the advice at #11

from cpm.

neonstalwart avatar neonstalwart commented on June 9, 2024

btw, you need to point CPM_PATH to the lib dir. based on the default install CPM_PATH=/usr/local/lib/cpm

from cpm.

kriszyp avatar kriszyp commented on June 9, 2024

I removed the -f flag on the readlink, which seems to fix this latter issue.

from cpm.

Related Issues (17)

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.