I found these libraries: http://www.g95.org/downloads.shtml. I downloaded the x86 OSX binaries, unzipped the file, and did ln -s bin/i686-apple-darwin10.3.0-g95 /usr/local/bin/g95, and added chmod +rx permissions to all these files, but I still can't run the g95 executable.
g95-install$ ls -la *
-rwxr-xr-x# 1 kilojoules staff 138126 Jan 17 2013 G95Manual.pdf
-rwxr-xr-x# 1 kilojoules staff 523 Jul 15 22:43 INSTALL
bin:
total 352
drwxr-xr-x# 3 kilojoules staff 102 Jan 17 2013 .
drwxr-xr-x# 6 kilojoules staff 204 Jul 15 22:43 ..
-rwxr-xr-x# 1 kilojoules staff 176968 Jan 17 2013 i686-apple-darwin10.3.0-g95
lib:
total 0
drwxr-xr-x# 3 kilojoules staff 102 Jul 15 22:39 .
drwxr-xr-x# 6 kilojoules staff 204 Jul 15 22:43 ..
drwxr-xr-x# 3 kilojoules staff 102 Jul 15 22:39 gcc-lib
$ ln -s bin/i686-apple-darwin10.3.0-g95 /usr/local/bin/g95
$PATH
-bash: /usr/local/bin:/usr/local/sbin:/Users/kilojoules/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin: No such file or directory
$ g95
-bash: g95: command not found
Why isn't there a brew formula for this?
Related
I install lua success in my mac, but i got "-bash: lua: command not found" message when i run lua cmd, but i run /usr/loca/bin/lua success, i confirm the path that lua installed is included in PATH. I record some information as follow:
lxr:bin wang$ pwd
/usr/local/bin
lxr:bin wang$ echo $PATH
.;/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:JAVA_HOME/bin
lxr:bin wang$ lua
-bash: lua: command not found
lxr:bin wang$ pwd
/usr/local/bin
lxr:bin wang$ ls -l
total 872
-rwxr-xr-x 1 root wheel 80 11 23 00:40 VBoxAutostart
-rwxr-xr-x 1 root wheel 82 11 23 00:40 VBoxBalloonCtrl
-rwxr-xr-x 1 root wheel 80 11 23 00:40 VBoxBugReport
-rwxr-xr-x 1 root wheel 77 11 23 00:40 VBoxDTrace
-rwxr-xr-x 1 root wheel 79 11 23 00:40 VBoxHeadless
-rwxr-xr-x 1 root wheel 77 11 23 00:40 VBoxManage
-rwxr-xr-x 1 root wheel 79 11 23 00:40 VBoxVRDP
-rwxr-xr-x 1 root wheel 77 11 23 00:40 VirtualBox
lrwxr-xr-x 1 root wheel 14 3 28 2016 git -> ../git/bin/git
lrwxr-xr-x 1 root wheel 37 3 28 2016 git-credential-osxkeychain -> ../git/bin/git-credential-osxkeychain
lrwxr-xr-x 1 root wheel 24 3 28 2016 git-cvsserver -> ../git/bin/git-cvsserver
lrwxr-xr-x 1 root wheel 20 3 28 2016 git-shell -> ../git/bin/git-shell
lrwxr-xr-x 1 root wheel 26 3 28 2016 git-upload-pack -> ../git/bin/git-upload-pack
lrwxr-xr-x 1 root wheel 15 3 28 2016 gitk -> ../git/bin/gitk
-rwxr-xr-x 1 root wheel 221128 12 1 15:53 lua
-rwxr-xr-x 1 root wheel 150520 12 1 15:53 luac
-rwxr-xr-x 1 root wheel 2670 11 28 2014 pstorm
-rwxr-xr-x 1 root wheel 1394 3 8 2017 ssh-copy-id
-rwxr-xr-x 1 root wheel 75 11 23 00:40 vbox-img
-rwxr-xr-x 1 root wheel 77 11 23 00:40 vboxwebsrv
lxr:bin wang$ ./lua
Lua 5.3.0 Copyright (C) 1994-2015 Lua.org, PUC-Rio
>
lxr:bin wang$
The first two characters in $PATH should probably be .:, not .;.
I am not able to create .bashrc file in the home directory. When I try to use touch I get:
touch: .bashrc: No such file or directory
When I type vim .bashrc in the home directory, and try to save using :w, it says
E166: Can't open linked file for writing
Edit:
Output of ls -l .bash*
lrwxr-xr-x 1 ankitsultana staff 34 Oct 30 2014 .bash -> /Users/ankitsultana/.dotfiles/bash
-rw------- 1 ankitsultana staff 7069 Nov 26 01:04 .bash_history
-rw-r--r-- 1 ankitsultana staff 2633 Nov 26 13:51 .bash_profile
-rw-r--r-- 1 ankitsultana staff 167 Sep 21 2014 .bash_profile-anaconda.bak
-rw-r--r-- 1 ankitsultana staff 1791 Jun 30 2015 .bash_profile.pysave
lrwxr-xr-x 1 ankitsultana staff 36 Oct 30 2014 .bashrc -> /Users/ankitsultana/.dotfiles/bashrc
I'm following "How to Write Go Code" and tries to delete stringutil.a under $GOPATH/pkg/darwin_amd64/github.com/user. The delete is successful but the file comes back on its own. I'm confused. What is happening?
zps-MacBook-Air:haibin haibin$ rm stringutil.a
zps-MacBook-Air:haibin haibin$ ls -lah
total 0
drwxr-xr-x 2 haibin staff 68B Feb 15 00:57 .
drwxr-xr-x 17 haibin staff 578B Feb 15 00:39 ..
zps-MacBook-Air:haibin haibin$ ls -lah
total 8
drwxr-xr-x 3 haibin staff 102B Feb 15 00:57 .
drwxr-xr-x 17 haibin staff 578B Feb 15 00:39 ..
-rw-r--r-- 1 haibin wheel 2.4K Feb 15 00:57 stringutil.a
You need to delete the stringutil.go source file that is under the src tree. The *.a file is a binary file which results from the compilation (and possibly linking) of source files.
I have installed the global npm package jslint and it lives here
$ ls -la /usr/local/bin/jslint
lrwxr-xr-x 1 lust admin 40 Feb 12 15:31 /usr/local/bin/jslint -> ../lib/node_modules/jslint/bin/jslint.js
$ ls -la /usr/local/lib/node_modules/jslint/bin
total 8
drwxr-xr-x 3 lust staff 102 Apr 16 2012 .
drwxr-xr-x 10 lust staff 340 Feb 12 15:31 ..
-rwxr-xr-x 1 lust staff 2330 Apr 16 2012 jslint.js
$ which jslint
/usr/local/bin/jslint
$ head -3 /usr/local/bin/jslint
#!/usr/bin/env node
var linter = require("../lib/linter");
So it is without any doubt whatsoever at this point that jslint is in fact being run from this dir and not here:
$ ls -la .npm/jslint/0.1.9/package/bin/
total 8
drwxr-xr-x 3 lust staff 102 Apr 16 2012 .
drwxr-xr-x 9 lust staff 306 Feb 12 15:31 ..
-rwxr-xr-x 1 lust staff 2330 Apr 16 2012 jslint.js
There appear to be two copies of the package, one in /usr/local/ and one in ~/.npm. Why is there one in .npm and is it safe for me to remove it?
~/.npm is a cache that npm uses to avoid re-downloading the same package multiple times. There's no harm in removing it. You can empty it with the command:
npm cache clean
I have local ruby gem, with a development version forked from github. So I have it locally. Now I want to use it in my application. I'm using bundler so I did:
gem 'otrs_connector', :path => '/devel/otrs_connector'
problem is that I get errors about missing files
require 'rubygems'
require 'otrs_connector'
then run
$ ruby app.rb
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- otrs_connector (LoadError)
how can I load my "under development" gem?
this is my /devel/otrs_connector
$ ls -al /devel/otrs_connector
total 112
drwxr-xr-x 15 marcinkrzyzanowski staff 510 Oct 1 15:22 .
drwxr-xr-x 33 marcinkrzyzanowski staff 1122 Oct 1 15:17 ..
-rw-r--r-- 1 marcinkrzyzanowski staff 55 Oct 1 15:04 .document
drwxr-xr-x 13 marcinkrzyzanowski staff 442 Oct 1 15:04 .git
-rw-r--r-- 1 marcinkrzyzanowski staff 820 Oct 1 15:04 .gitignore
-rw-r--r-- 1 marcinkrzyzanowski staff 480 Oct 1 15:04 Gemfile
-rw-r--r-- 1 marcinkrzyzanowski staff 773 Oct 1 15:04 Gemfile.lock
-rw-r--r-- 1 marcinkrzyzanowski staff 1054 Oct 1 15:04 LICENSE.txt
-rw-r--r-- 1 marcinkrzyzanowski staff 2016 Oct 1 15:04 README.rdoc
-rw-r--r-- 1 marcinkrzyzanowski staff 1428 Oct 1 15:04 Rakefile
-rw-r--r-- 1 marcinkrzyzanowski staff 5 Oct 1 15:04 VERSION
drwxr-xr-x 4 marcinkrzyzanowski staff 136 Oct 1 15:04 lib
-rw-r--r-- 1 marcinkrzyzanowski staff 16896 Oct 1 15:22 otrs_connector-1.3.0.gem
-rw-r--r-- 1 marcinkrzyzanowski staff 2954 Oct 1 15:04 otrs_connector.gemspec
drwxr-xr-x 4 marcinkrzyzanowski staff 136 Oct 1 15:04 test
Where is the file stored? I think you stored it in a devel folder in your home folder, not at /devel. If you start a path with a /, you points to the root of the HD path.
You might want to change the path to
gem 'otrs_connector', :path => '~/devel/otrs_connector'
(please note the ~ which is a replacement for the path to your home folder).