I want to convert sequence of 40 images to a video. The problem is that ffmpeg could not find any of the inputs images matching the regexp in the command. What am I doing wrong please?
I ran the following commands:
> ffmpeg -f image2 -i "img%0d.jpg" -vcodec mpeg4 -y -v "verbose" 07_seq_wire.avi
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
img%0d.jpg: No such file or directory
> ls -l
-rw-r--r-- 1 david david 69812 Apr 11 01:54 img01.jpg
-rw-r--r-- 1 david david 70858 Apr 11 01:54 img02.jpg
-rw-r--r-- 1 david david 71481 Apr 11 01:54 img03.jpg
-rw-r--r-- 1 david david 71528 Apr 11 01:54 img04.jpg
-rw-r--r-- 1 david david 71470 Apr 11 01:54 img05.jpg
-rw-r--r-- 1 david david 71534 Apr 11 01:54 img06.jpg
-rw-r--r-- 1 david david 70908 Apr 11 01:54 img07.jpg
-rw-r--r-- 1 david david 70633 Apr 11 01:54 img08.jpg
-rw-r--r-- 1 david david 70059 Apr 11 01:54 img09.jpg
-rw-r--r-- 1 david david 70021 Apr 11 01:54 img10.jpg
-rw-r--r-- 1 david david 69726 Apr 11 01:54 img11.jpg
-rw-r--r-- 1 david david 70896 Apr 11 01:54 img12.jpg
-rw-r--r-- 1 david david 72123 Apr 11 01:54 img13.jpg
-rw-r--r-- 1 david david 72605 Apr 11 01:54 img14.jpg
-rw-r--r-- 1 david david 73501 Apr 11 01:54 img15.jpg
-rw-r--r-- 1 david david 73743 Apr 11 01:54 img16.jpg
-rw-r--r-- 1 david david 74401 Apr 11 01:54 img17.jpg
-rw-r--r-- 1 david david 74697 Apr 11 01:54 img18.jpg
-rw-r--r-- 1 david david 75371 Apr 11 01:54 img19.jpg
-rw-r--r-- 1 david david 74802 Apr 11 01:54 img20.jpg
-rw-r--r-- 1 david david 74802 Apr 11 01:55 img21.jpg
-rw-r--r-- 1 david david 75371 Apr 11 01:55 img22.jpg
-rw-r--r-- 1 david david 74697 Apr 11 01:55 img23.jpg
-rw-r--r-- 1 david david 74401 Apr 11 01:55 img24.jpg
-rw-r--r-- 1 david david 73743 Apr 11 01:55 img25.jpg
-rw-r--r-- 1 david david 73501 Apr 11 01:55 img26.jpg
-rw-r--r-- 1 david david 72605 Apr 11 01:55 img27.jpg
-rw-r--r-- 1 david david 72123 Apr 11 01:55 img28.jpg
-rw-r--r-- 1 david david 70896 Apr 11 01:55 img29.jpg
-rw-r--r-- 1 david david 69726 Apr 11 01:55 img30.jpg
-rw-r--r-- 1 david david 70021 Apr 11 01:55 img31.jpg
-rw-r--r-- 1 david david 70059 Apr 11 01:55 img32.jpg
-rw-r--r-- 1 david david 70633 Apr 11 01:55 img33.jpg
-rw-r--r-- 1 david david 70908 Apr 11 01:55 img34.jpg
-rw-r--r-- 1 david david 71534 Apr 11 01:55 img35.jpg
-rw-r--r-- 1 david david 71470 Apr 11 01:55 img36.jpg
-rw-r--r-- 1 david david 71528 Apr 11 01:55 img37.jpg
-rw-r--r-- 1 david david 71481 Apr 11 01:55 img38.jpg
-rw-r--r-- 1 david david 70858 Apr 11 01:56 img39.jpg
-rw-r--r-- 1 david david 69812 Apr 11 01:56 img40.jpg
Thanks for any help!
Try changing img%0d.jpg to img%2d.jpg.
It worked for me when I did this.
You will have to set a bit rate with -b:v 1024K, or a quality level with -q:v 2 (range from 1 to 31, 2–5 being sane choices) to change the quality of the output. Without specifying anything, the default bit rate will be very low and result in bad visual quality.
Related
This question already has answers here:
Looping over pairs of values in bash [duplicate]
(6 answers)
Closed 1 year ago.
I have a collection of files in a directory. They are left and right audio tracks for each filename. I want them to be listed by bash as filename_l filename_r so I can use sox to merge each one together. But I am not having any luck with a bash loop.
I need the files listed in the loop as 1-2 3-4 5-6 7-8 9-10 11-12 et cetera. But I am not sure how to go about this.
-rwxrwxrwx 1 jason jason 653K Oct 25 14:24 05_wasteland2_str_l.ogg
-rwxrwxrwx 1 jason jason 648K Oct 25 14:24 05_wasteland2_str_r.ogg
-rwxrwxrwx 1 jason jason 1.5M Oct 25 14:24 amb0010_l.ogg
-rwxrwxrwx 1 jason jason 1.5M Oct 25 14:24 amb0010_r.ogg
-rwxrwxrwx 1 jason jason 1.4M Oct 25 14:24 amb0016_l.ogg
-rwxrwxrwx 1 jason jason 1.4M Oct 25 14:24 amb0016_r.ogg
-rwxrwxrwx 1 jason jason 2.9M Oct 25 14:24 amb0017_l.ogg
-rwxrwxrwx 1 jason jason 2.9M Oct 25 14:24 amb0017_r.ogg
-rwxrwxrwx 1 jason jason 2.6M Oct 25 14:24 amb0019_l.ogg
-rwxrwxrwx 1 jason jason 2.6M Oct 25 14:24 amb0019_r.ogg
-rwxrwxrwx 1 jason jason 1.8M Oct 25 14:24 amb001_l.ogg
-rwxrwxrwx 1 jason jason 1.8M Oct 25 14:24 amb001_r.ogg
-rwxrwxrwx 1 jason jason 2.0M Oct 25 14:24 amb006_l.ogg
-rwxrwxrwx 1 jason jason 2.0M Oct 25 14:24 amb006_r.ogg
-rwxrwxrwx 1 jason jason 1.9M Oct 25 14:24 amb007_l.ogg
-rwxrwxrwx 1 jason jason 1.9M Oct 25 14:24 amb007_r.ogg
-rwxrwxrwx 1 jason jason 4.5M Oct 25 14:24 amb01_l.ogg
-rwxrwxrwx 1 jason jason 4.5M Oct 25 14:24 amb01_r.ogg
-rwxrwxrwx 1 jason jason 3.0M Oct 25 14:24 amb02_l.ogg
-rwxrwxrwx 1 jason jason 3.0M Oct 25 14:24 amb02_r.ogg
-rwxrwxrwx 1 jason jason 2.5M Oct 25 14:24 amb03_l.ogg
-rwxrwxrwx 1 jason jason 2.5M Oct 25 14:24 amb03_r.ogg
-rwxrwxrwx 1 jason jason 2.2M Oct 25 14:24 amb04_l.ogg
-rwxrwxrwx 1 jason jason 2.2M Oct 25 14:24 amb04_r.ogg
-rwxrwxrwx 1 jason jason 2.3M Oct 25 14:24 amb05_l.ogg
-rwxrwxrwx 1 jason jason 2.3M Oct 25 14:24 amb05_r.ogg
I tried this bash loop, but it does not do what I need, but there must be something small I am missing.
declare -a files=(*.ogg)
for (( i = 0; i < ${#files[*]}; ++ i ))
do
echo ${files[$i]} ${files[$i+1]}
done
There are 486 files in total, and doing this by hand will take too logn and be prone to mistakes. Every loop I have tried has gone 1-2 2-3 3-4 4-5 et cetera, I need this do work differently, so each file is listed with it`s partner. The existing loop I have gives this output.
05_wasteland2_str_l.ogg 05_wasteland2_str_r.ogg
05_wasteland2_str_r.ogg amb0010_l.ogg
amb0010_l.ogg amb0010_r.ogg
amb0010_r.ogg amb0016_l.ogg
amb0016_l.ogg amb0016_r.ogg
amb0016_r.ogg amb0017_l.ogg
amb0017_l.ogg amb0017_r.ogg
amb0017_r.ogg amb0019_l.ogg
amb0019_l.ogg amb0019_r.ogg
amb0019_r.ogg amb001_l.ogg
amb001_l.ogg amb001_r.ogg
amb001_r.ogg amb006_l.ogg
amb006_l.ogg amb006_r.ogg
amb006_r.ogg amb007_l.ogg
amb007_l.ogg amb007_r.ogg
amb007_r.ogg amb01_l.ogg
amb01_l.ogg amb01_r.ogg
amb01_r.ogg amb02_l.ogg
amb02_l.ogg amb02_r.ogg
This is not what I am after. But I hope there is a simple solution to this problem.
I want to be able to output this.
05_wasteland2_str_l.ogg 05_wasteland2_str_r.ogg
For each of the files, _l and _r. I want to be able to use sox to merge each pair of files.
That way I can use this to merge the files.
sox -M 05_wasteland2_str_l.ogg 05_wasteland2_str_r.ogg 05_wasteland2_merged.ogg
But listing the files in pairs is what I am finding very difficult. This could end up being quite challenging.
You could use the fact that there are pairs of otherwise identically named files with _l and _r:
for f in *_l.ogg; do
echo "$f" "${f/%_l.ogg/_r.ogg}"
done
This loops over all files ending in _l.ogg, and then prints pairs of these files together with the file where _l.ogg (anchored at the end of the string) is replaced by _r.ogg.
You are currently iterating over files, but you want to iterate over pairs of files. There are half as many pairs of files as there are files (${#files[*]}/2).
The indexes need to become $i*2 and $i*2+1.
Complete code, with these changes included:
declare -a files=(*.ogg)
for (( i = 0; i < ${#files[*]}/2; ++ i ))
do
echo ${files[$i*2]} ${files[$i*2+1]}
done
This answer requires minimal changes to your existing code. However, it assumes that the files array is sorted and consists entirely of pairs of files in the expected format. Benjamin W.’s answer does not make these assumptions.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Does anyone know what the * following a filename in macOS terminal means?
All the file names in the folder:
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands
have a * trailing them and I'm not sure why.
For example:
jd#Mypc % ls -laF
total 1200
drwxr-xr-x 52 root wheel 1664 21 Sep 11:17 ./
drwxr-xr-x 8 root wheel 256 21 Sep 11:17 ../
-rwxr-xr-x 1 root wheel 38896 11 Aug 08:50 appletviewer*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 apt*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:49 extcheck*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 idlj*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jar*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jarsigner*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 java*
-rwxr-xr-x 1 root wheel 48512 11 Aug 08:50 java_home*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 javac*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 javadoc*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 javah*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 javap*
-rwxr-xr-x 1 root wheel 38896 11 Aug 08:50 javapackager*
-rwxr-xr-x 1 root wheel 37952 11 Aug 08:49 javaws*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jcmd*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jconsole*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jcontrol*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jdb*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jdeps*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jhat*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jhsdb*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jimage*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jinfo*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jjs*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jmap*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:49 jmc*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jps*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jrunscript*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jsadebugd*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:49 jshell*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jstack*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jstat*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jstatd*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 jvisualvm*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 keytool*
-rwxr-xr-x 1 root wheel 38896 11 Aug 08:50 native2ascii*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 orbd*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 pack200*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 policytool*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:49 rmic*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 rmid*
-rwxr-xr-x 1 root wheel 38896 11 Aug 08:50 rmiregistry*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 schemagen*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 serialver*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 servertool*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 tnameserv*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 unpack200*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 wsgen*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 wsimport*
-rwxr-xr-x 1 root wheel 38880 11 Aug 08:50 xjc*
jd#Mypc %
I'd love to know.
Thanks,
John
They have the trailing asterisk because (a) they're executable; and (b) you supplied the -F option to ls.
See the documentation for the -F option in the man page for ls:
-F Display a slash (`/') immediately after each pathname that is a
directory, an asterisk (`*') after each that is executable, an at
sign (`#') after each symbolic link, an equals sign (`=') after
each socket, a percent sign (`%') after each whiteout, and a ver-
tical bar (`|') after each that is a FIFO.
Those files have their executable bit set, e.g.
$ touch foo
$ ls -laF foo
-rw-r--r-- 1 user staff 0 Sep 27 18:33 foo
$ chmod a+x foo
$ ls -laF foo
-rwxr-xr-x 1 user staff 0 Sep 27 18:33 foo*
As for the executable-looking emulator that you can't actually execute, this can happen when the dynamic loader requested by emulator doesn't exist. You can check what kind of file emulator is with the command file emulator, and check what dynamic loader and libraries it needs with ldd emulator (any line showing “not found” is something you need to install). Given the name of the directory and the size of the file, emulator is probably a Linux x86 binary. I suspect you have an amd64 system. If so, you need to install a runtime environment for 32-bit applications; on Ubuntu, you need the ia32-libs package (and perhaps also ia32-libs-gtk). You could also get this error message for a script whose interpreter as indicated in the #! line doesn't exist.
https://superuser.com/questions/178786/what-does-the-asterisk-mean-after-a-filename-when-you-type-ls-l
same question here.
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 .;.
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
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).