Comments (10)
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.
I got the same error on install
from cpm.
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.
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.
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.
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.
to avoid the readlink error, you can set the CPM_PATH
environment variable and avoid the call to readlink
from cpm.
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.
btw, you need to point CPM_PATH
to the lib dir. based on the default install CPM_PATH=/usr/local/lib/cpm
from cpm.
I removed the -f flag on the readlink, which seems to fix this latter issue.
from cpm.
Related Issues (17)
- "cpm install" based on package.json HOT 2
- readlink: illegal option -- f HOT 2
- dependencies are not installed with comparison >= in dependencies
- Can't provide target location without version HOT 1
- Name conflict for some Linux users HOT 2
- Error trying to install requirejs
- Error trying to install requirejs
- Trouble with CPM on OSX Mountain Lion
- If a package was not installed with cpm, the version information is not used and the package can be overwritten
- cpm behind a proxy
- Crashes while getting dojo/dojox and dojo/util modules. HOT 8
- Option to prevent unzipping / untarring
- cpm upgrade has to be run twice when upgrading to dojo 1.10
- Upgrading dojox fails in 1.10.1
- Update package HOT 2
- Need licensing information
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpm.