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).
Related
I am running below commands on console:
[root#master ~]# pwd
/root
[root#master ~]# vi test.txt
#editting file
[root#master ~]# su - hdfs -c "hdfs dfs -put /root/test.txt /user/ambari-qa"
put: `/root/test.txt': No such file or directory
the file is there
[root#master ~]# pwd
/root
[root#master ~]# ls -l
total 9636984
-rw-r--r--. 1 root root 1823777034 Jun 12 08:34 ambari-2.6.2.2-centos6.tar.gz
-rw-------. 1 root root 716 Mar 19 2012 anaconda-ks.cfg
drwxr-xr-x. 2 root root 4096 Oct 15 11:30 Desktop
drwxr-xr-x. 2 root root 4096 Oct 15 11:30 Documents
drwxr-xr-x. 2 root root 4096 Oct 15 11:30 Downloads
-rw-r--r-- 1 root root 15 Oct 18 20:16 enabled~
-rw-r--r-- 1 root root 15 Oct 18 20:38 enablez~
-rw-r--r--. 1 root root 511720220 Oct 15 19:33 HDP-2.6.5.0-centos6-rpm.tar.gz
-rw-r--r--. 1 root root 7303095942 May 15 03:50 HDP-2.6.5.0-centos6-rpm.tar.gz.1
-rw-r--r--. 1 root root 43941068 Aug 13 20:28 HDP-UTILS-1.1.0.22-centos6.tar.gz
-rw-r--r--. 1 root root 185646832 Oct 15 17:04 jdk-8u181-linux-x64.tar.gz
drwxr-xr-x. 2 root root 4096 Oct 15 11:30 Music
drwxr-xr-x. 2 root root 4096 Oct 15 11:30 Pictures
-rw-r--r--. 1 root root 12148 Dec 16 2011 post-install
-rw-r--r--. 1 root root 552 Dec 16 2011 post-install.log
drwxr-xr-x. 2 root root 4096 Oct 15 11:30 Public
drwxr-xr-x. 2 root root 4096 Oct 15 11:30 Templates
-rw-r--r-- 1 root root 2 Oct 23 05:39 test
-rwxr-xr-x 1 root root 3 Oct 23 06:37 test.txt
However,I am getting no such file or directory, I am creating the file in the path but I get that error?
Seems the problem was due to privilege at /root directory
dr-xr-x---. 25 root root 4096 Oct 23 06:37 root
using chmod 755 worked then
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 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?
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.
Mac OSX 10.7.5
I am just trying to install Qsynth a GUI controller for fluidsynth. When I run make -d I get the following message -
...
Considering target file `src/qsynthAboutForm.ui'.
File `src/qsynthAboutForm.ui' does not exist.
...
No implicit rule found for `src/qsynthAboutForm.ui'.
Finished prerequisites of target file `src/qsynthAboutForm.ui'.
Must remake target `src/qsynthAboutForm.ui'.
make: *** No rule to make target `src/qsynthAboutForm.ui', needed by `src/qsynth'. Stop.
The file does exist in src/ and the Makefile spelling etc. is OK.
Any ideas?
Thanks
Marc
I executed the command on just qsynthAboutForm.ui and then on the entire directory.
Thanks
unknown0023121f2421:src Marc$ pwd
/Applications/qsynth-0.3.8/src
unknown0023121f2421:src Marc$ ls -l qsynthAboutForm.ui
-rw-r--r-- 1 Marc staff 3928 Jul 8 2013 qsynthAboutForm.ui
unknown0023121f2421:src Marc$ ls -l
total 1200
-rw-r--r-- 1 Marc staff 3529 Dec 2 15:09 CMakeLists.txt
-rw-r--r-- 1 Marc staff 2835 Jan 26 15:11 Makefile
-rw-r--r-- 1 Marc staff 1812 Apr 9 2010 cmakeconfig.cmake
-rw-r--r--# 1 Marc staff 2813 Dec 31 05:24 config.h.in
-rw-r--r-- 1 Marc staff 26764 Jan 26 15:11 config.log
-rwxr-xr-x 1 Marc staff 28428 Jan 26 15:11 config.status
drwxr-xr-x# 27 Marc staff 918 Dec 31 05:24 images
-rw-r--r--# 1 Marc staff 11158 Jul 8 2013 qsynth.cpp
-rw-r--r--# 1 Marc staff 431 Aug 4 11:30 qsynth.desktop.in
-rw-r--r-- 1 Marc staff 5017 Jan 18 15:56 qsynth.mak
-rw-r--r--# 1 Marc staff 224 Mar 26 2010 qsynth.pro
-rw-r--r--# 1 Marc staff 954 Mar 26 2010 qsynth.qrc
-rw-r--r-- 1 Marc staff 2773 Jan 26 15:11 qsynth.spec
-rw-r--r-- 1 Marc staff 2797 Dec 31 05:16 qsynth.spec.in
-rw-r--r--# 1 Marc staff 1442 Jan 13 2013 qsynthAbout.h
-rw-r--r--# 1 Marc staff 3178 Jul 8 2013 qsynthAboutForm.cpp
-rw-r--r--# 1 Marc staff 1535 Jul 8 2013 qsynthAboutForm.h
-rw-r--r-- 1 Marc staff 3928 Jul 8 2013 qsynthAboutForm.ui
-rw-r--r--# 1 Marc staff 1893 Jul 2 2007 qsynthChannels.cpp
-rw-r--r--# 1 Marc staff 1770 Jul 3 2007 qsynthChannels.h
-rw-r--r--# 1 Marc staff 14078 Jul 8 2013 qsynthChannelsForm.cpp
-rw-r--r--# 1 Marc staff 2546 Jul 8 2013 qsynthChannelsForm.h
-rw-r--r--# 1 Marc staff 6133 Jul 8 2013 qsynthChannelsForm.ui
-rw-r--r--# 1 Marc staff 6001 Dec 28 2012 qsynthDialClassicStyle.cpp
-rw-r--r--# 1 Marc staff 1772 Dec 28 2012 qsynthDialClassicStyle.h
-rw-r--r--# 1 Marc staff 5484 Dec 28 2012 qsynthDialPeppinoStyle.cpp
-rw-r--r--# 1 Marc staff 1559 Dec 28 2012 qsynthDialPeppinoStyle.h
-rw-r--r--# 1 Marc staff 16827 Dec 28 2012 qsynthDialSkulptureStyle.cpp
-rw-r--r--# 1 Marc staff 1458 Dec 28 2012 qsynthDialSkulptureStyle.h
-rw-r--r--# 1 Marc staff 6690 Dec 28 2012 qsynthDialVokiStyle.cpp
-rw-r--r--# 1 Marc staff 1517 Dec 28 2012 qsynthDialVokiStyle.h
-rw-r--r--# 1 Marc staff 2306 Jul 2 2007 qsynthEngine.cpp
-rw-r--r--# 1 Marc staff 2129 Jul 2 2007 qsynthEngine.h
-rw-r--r--# 1 Marc staff 4335 Jan 13 2013 qsynthKnob.cpp
-rw-r--r--# 1 Marc staff 2806 Jan 13 2013 qsynthKnob.h
-rw-r--r--# 1 Marc staff 70686 Jul 8 2013 qsynthMainForm.cpp
-rw-r--r--# 1 Marc staff 4965 Jul 8 2013 qsynthMainForm.h
-rw-r--r--# 1 Marc staff 33978 Jul 8 2013 qsynthMainForm.ui
-rw-r--r--# 1 Marc staff 5381 Mar 26 2010 qsynthMessagesForm.cpp
-rw-r--r--# 1 Marc staff 2289 Mar 26 2010 qsynthMessagesForm.h
-rw-r--r--# 1 Marc staff 2241 Mar 26 2010 qsynthMessagesForm.ui
-rw-r--r--# 1 Marc staff 11227 Sep 12 2009 qsynthMeter.cpp
-rw-r--r--# 1 Marc staff 4024 Sep 12 2009 qsynthMeter.h
-rw-r--r--# 1 Marc staff 31060 Dec 22 2012 qsynthOptions.cpp
-rw-r--r--# 1 Marc staff 3251 Dec 22 2012 qsynthOptions.h
-rw-r--r--# 1 Marc staff 9698 Jul 9 2010 qsynthOptionsForm.cpp
-rw-r--r--# 1 Marc staff 1878 Mar 26 2010 qsynthOptionsForm.h
-rw-r--r--# 1 Marc staff 22877 Jul 9 2010 qsynthOptionsForm.ui
-rw-r--r--# 1 Marc staff 11433 Dec 29 2012 qsynthPresetForm.cpp
-rw-r--r--# 1 Marc staff 2142 Jul 8 2013 qsynthPresetForm.h
-rw-r--r--# 1 Marc staff 5929 Jul 8 2013 qsynthPresetForm.ui
-rw-r--r--# 1 Marc staff 6848 Dec 22 2012 qsynthSetup.cpp
-rw-r--r--# 1 Marc staff 2730 Dec 22 2012 qsynthSetup.h
-rw-r--r--# 1 Marc staff 31309 Jul 8 2013 qsynthSetupForm.cpp
-rw-r--r--# 1 Marc staff 2550 Jul 8 2013 qsynthSetupForm.h
-rw-r--r--# 1 Marc staff 35449 Jul 8 2013 qsynthSetupForm.ui
-rw-r--r--# 1 Marc staff 3569 Jul 8 2013 qsynthSystemTray.cpp
-rw-r--r--# 1 Marc staff 2164 Jul 8 2013 qsynthSystemTray.h
-rw-r--r--# 1 Marc staff 2986 Jul 8 2013 qsynthTabBar.cpp
-rw-r--r--# 1 Marc staff 1909 Jul 8 2013 qsynthTabBar.h
drwxr-xr-x 5 Marc staff 170 Jan 26 15:11 src
-rw-r--r--# 1 Marc staff 104 Sep 25 2010 src.pri.in
-rw-r--r--# 1 Marc staff 2164 Aug 4 11:30 src.pro
drwxr-xr-x# 8 Marc staff 272 Dec 31 05:24 translations
drwxr-xr-x# 5 Marc staff 170 Dec 31 05:24 win32